Help! - Passing form data between multiple pages

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Help! - Passing form data between multiple pages

    Hi,

    I am working on a multiple pages survey, right now if my user fill out page
    1, click next, then fill out page2, page3, his answer will be there when he
    goes back to page2, but if the user goes back to page 1, change some his
    answeres, then click next, his page 2 answers are all gone.

    So I would to allow user still can go to page 1 to change answers, then click
    next will still see their page 2 answeres there if there is no changes. Please
    advise, I am in despair now. I tried session variables, but maybe I did not
    use it properly. If anybody has done it before. Could you please help me?
    Thanks a lot.

    XFL

    xfl Guest

  2. Similar Questions and Discussions

    1. Splitting an ASP.NET Form on Multiple Pages
      Hey, I am pretty new to web development and i am trying to create a form using ASP.NET that spans more than one page. The reason for this is the...
    2. Passing Data between CF and Java pages
      I've got a ColdFusion page on one server and a Java page on another server. I need to make a request from the CF page for data such as "Company...
    3. passing data between pages... one has a drop down form
      I need to pass a zip code from a drop down form on one .cfm (passing.cfm) to another. How does the receiving page (receiving.cfm) understand which...
    4. <form> to multiple pages
      I would like the following form to send to the https that is shown, but I would also like it to send the same info to another page at the same time....
    5. Best way to move data across multiple pages?
      I am trying to build a few pages basically emulating a wizard that you might find in a Windows product. A few fields to fill out on one page, move...
  3. #2

    Default Re: Help! - Passing form data between multiple pages

    Hi,

    It seems to be your not updating the session variables. If the user goes back
    to page 1, and changes some answers then you need to update the session
    variable...

    <cfif IsDefined("session.firstName")>
    <cfset session.firstName = form.firstName>
    </cfif>

    Something like that, you could also loop, depending on how many form fields
    you have...

    HTH

    -Westside

    -Westside

    WestSide Guest

  4. #3

    Default Re: Help! - Passing form data between multiple pages

    XFL -

    How about this?

    <cfif Not IsDefined("session.yourVariable")><cfset session.yourVariable =
    yourFormValue></cfif>

    -brian

    "xfl" <webforumsuser@macromedia.com> wrote in message
    news:d62o85$ik6$1@forums.macromedia.com...
    > Hi,
    >
    > I am working on a multiple pages survey, right now if my user fill out
    page
    > 1, click next, then fill out page2, page3, his answer will be there when
    he
    > goes back to page2, but if the user goes back to page 1, change some his
    > answeres, then click next, his page 2 answers are all gone.
    >
    > So I would to allow user still can go to page 1 to change answers, then
    click
    > next will still see their page 2 answeres there if there is no changes.
    Please
    > advise, I am in despair now. I tried session variables, but maybe I did
    not
    > use it properly. If anybody has done it before. Could you please help
    me?
    > Thanks a lot.
    >
    > XFL
    >

    Brian Hogue 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