Professional Web Applications Themes

Help! - Passing form data between multiple pages - Macromedia ColdFusion

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 ...

  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. #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

  3. #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" <webforumsusermacromedia.com> wrote in message
    news:d62o85$ik6$1forums.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

Similar Threads

  1. Splitting an ASP.NET Form on Multiple Pages
    By jcharlem in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: September 22nd, 02:40 PM
  2. Passing Data between CF and Java pages
    By Mike Paim in forum Coldfusion - Advanced Techniques
    Replies: 5
    Last Post: May 4th, 02:54 PM
  3. passing data between pages... one has a drop down form
    By AWZ in forum Coldfusion - Getting Started
    Replies: 4
    Last Post: April 6th, 11:55 PM
  4. <form> to multiple pages
    By HTSoheili in forum PHP Development
    Replies: 1
    Last Post: December 11th, 08:15 PM
  5. Best way to move data across multiple pages?
    By David Hearn in forum ASP.NET General
    Replies: 2
    Last Post: August 9th, 11:41 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
  •  

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