Results 1 to 6 of 6

Thread: What does this derive_fields in ASCII value mean?

  1. #1
    Join Date
    Dec 2008
    Location
    Maryland
    Posts
    82

    Default What does this derive_fields in ASCII value mean?

    HTML Code:
    
    derive_fields" value="next_form=make.%2E%.%'html'%"
    I am trying to understand what exactly this string of code does. I am a rookie so be easy on me.

    Anyway I think it looks for a folder one below its path then the html file that coincides with the selected value of a chained select.

    My god did that just come out of my mouth???


    http://www.tectite.com/fmhowto/derived.php
    http://www.unfiction.com/dev/tutorial/ascii.html

  2. #2
    Join Date
    Dec 2008
    Location
    Maryland
    Posts
    82

    Default Re: What does this derive_fields in ASCII value mean?

    So in reality I am looking at

    make/something.html

    ??
    Last edited by billy; 13-Dec-2008 at 07:10 PM. Reason: Differnt path needed

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: What does this derive_fields in ASCII value mean?

    Hi,

    No, that just creates "ford.html", or "toyota.html", etc.

    Sorry, I should have explained that.

    The derive_fields feature is described here:
    http://www.tectite.com/fmhowto/derived.php
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: What does this derive_fields in ASCII value mean?

    Hi again,

    So, it's taking the field called "make", appending period ("%2E%" is the period - 2E is the ASCII code for period), and then appending "html".

    The result is created as a field called "next_form", which, as you know, determines the next page in your multi-page sequence.

    Doing the same thing in a computation is easier to read.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Dec 2008
    Location
    Maryland
    Posts
    82

    Default Re: What does this derive_fields in ASCII value mean?

    Okay I understand that part.

    Could a derived field create a relation between two selects?

    Meaning my Year and Make problem?

    Not correct just an example...
    next_form=yearmake.???%2E%.%'html'%

    Could a combination of both take me to the correct value of both select boxes?


    Also based on everything I have read it seems I cannot hide a derive field in an ini file or the fmhookload.inc approach?

    Is this true.
    Last edited by billy; 13-Dec-2008 at 08:56 PM. Reason: mis spelled

  6. #6
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: What does this derive_fields in ASCII value mean?

    Hi,

    Quote Originally Posted by billy View Post

    Could a derived field create a relation between two selects?

    Meaning my Year and Make problem?

    Not correct just an example...
    next_form=yearmake.???%2E%.%'html'%
    Yes:
    HTML Code:
    next_form=year.make.%2E%.%'html'%
    would give you "2007toyota.html".

    HTML Code:
     next_form=year.%2F%.make.%2E%.%'html'%
    would give you "2007/toyota.html" (a directory structure).

    Also based on everything I have read it seems I cannot hide a derive field in an ini file or the fmhookload.inc approach?

    Is this true.
    You could hide it in fmhookload.inc, with a little bit more coding. "derive_fields" cannot go in the INI file.

    Also, remember these files are loaded on every page submission. So, you need logic to select only the processing required for the current page submission.

    First determine your "threat model". Why does it matter if someone can see how your "next_form" is generated?

    Some things are important to keep secret or inaccessible, but a most things don't matter.

    You need to have a clear understanding of what you're trying to protect and why.

    Once you understand that, you can design appropriately. Generally, I'd recommend getting everything working, and then decide how to hide what needs to be hidden.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Derive_fields problem (7.08)
    By info@marcel.co.za in forum Community Support
    Replies: 3
    Last Post: 16-Feb-2007, 12:33 PM
  2. derive_fields for mail_options
    By tvulucy in forum Community Support
    Replies: 2
    Last Post: 07-Sep-2006, 07:45 AM
  3. Error "derive_fields specifications are invalid "
    By Mystic_Bovine in forum FormMail Subscription Support
    Replies: 6
    Last Post: 29-Aug-2005, 08:50 PM
  4. derive_fields in multiforms
    By onno in forum FormMail Subscription Support
    Replies: 2
    Last Post: 05-Jul-2005, 07:31 AM
  5. recipients field as derive_fields
    By NOgbourne in forum FormMail Subscription Support
    Replies: 5
    Last Post: 09-Dec-2004, 12:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •