Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Parsing

    I have a question that must at once seem simple and stupid...

    If I create a form on one page and want to pass the form field data through a
    couple of other pages would I not include in the other pages:

    <input name="formfield" type="hidden" value="#form.formfield#"> ?

    It seemed perfectly logical to me but what I get is "form.formfield" instead
    of the data in the form field.

    OK guys (and gals) what did I miss here?

    Thanks!
    David



    InkFasT! Guest

  2. Similar Questions and Discussions

    1. How do i Parsing xml
      This how my customers xml is coming across and can not change. <month name="January"> <day> <date>01</date> <name>Thursday</name> <time>12:03...
    2. PDF Parsing
      Hello, I'm writing a PDF Parser and I want to recognize lines or Logic units(paragraphs or sentences) in the PDF stream objects. I need to take a...
    3. Parsing URL
      How do I go about parsing a url from the browser location. For example if I have the following url: ...
    4. Parsing PHP
      I am using PHP to develop and web app. The app also has a scripting language for the *end user*. I was thinking if I could expose a very simple...
    5. [PHP] Parsing PHP
      There is the tokenizer extension... http://www.php.net/tokenizer This might give you a good start. -- Peter James petej@phparch.com ...
  3. #2

    Default Re: Parsing

    If you want your form data to persist through more than one page, create
    session variables.

    Originally posted by: InkFasT!
    I have a question that must at once seem simple and stupid...

    If I create a form on one page and want to pass the form field data through a
    couple of other pages would I not include in the other pages:

    <input name="formfield" type="hidden" value="#form.formfield#"> ?

    It seemed perfectly logical to me but what I get is "form.formfield" instead
    of the data in the form field.

    OK guys (and gals) what did I miss here?

    Thanks!
    David





    Dan Bracuk Guest

  4. #3

    Default Re: Parsing

    If you want your form data to persist through more than one page, create
    session variables.

    Originally posted by: InkFasT!
    I have a question that must at once seem simple and stupid...

    If I create a form on one page and want to pass the form field data through a
    couple of other pages would I not include in the other pages:

    <input name="formfield" type="hidden" value="#form.formfield#"> ?

    It seemed perfectly logical to me but what I get is "form.formfield" instead
    of the data in the form field.

    OK guys (and gals) what did I miss here?

    Thanks!
    David





    forumnotifier Guest

  5. #4

    Default Re: Parsing

    It seemed perfectly logical to me but what I get is "form.formfield" instead of
    the data in the form field.

    That can only mean one thing. At some point you mistakenly passed
    form.formfield instead of #form.formfield#. It's a common mistake we all
    make, in the heat of the action. Review your code, in particular, your "action"
    pages, i.e. the code that processes the posted form fields.





    BKBK Guest

  6. #5

    Default Re: Parsing

    Well it seems that to include the data in a hidden field and pass it through
    different pages (not to mention a payment gateway and into the db) the original
    code of:

    <input name="formfield" type="hidden" value="#form.formfield#"> was wrong...

    <input name="formfield" type="hidden"
    value="<cfoutput>#form.formfield#</cfoutput>"> worked great.

    Thanks for the help!
    David

    InkFasT! Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139