I'm creating a multi-page form using Sessions, PHP and a touch of javascript.
The first form is a pull-down that (using Javascript) dynamically sets a variable in the url which determines (using PHP) what field appears below it.
Below that short form is a second form with contact information.
I get the info to pass through all my pages correctly. At my confirmation page you can edit the section above and when you get to the page all the info is in place. Cool.
But, if you choose that dang pull-down menu and the page refreshes (as the URL changes) all my form fields go blank!
Here's a sketch of the page...
<session starts>
<form1>
• pull-down dynamically sets URL (self.location)
• variable form field based on selection above
</form>
<form2>
• contact info fields (go blank when pull-down changes URL)
</form>
Any thoughts on what I need to look into?
The first form is a pull-down that (using Javascript) dynamically sets a variable in the url which determines (using PHP) what field appears below it.
Below that short form is a second form with contact information.
I get the info to pass through all my pages correctly. At my confirmation page you can edit the section above and when you get to the page all the info is in place. Cool.
But, if you choose that dang pull-down menu and the page refreshes (as the URL changes) all my form fields go blank!
Here's a sketch of the page...
<session starts>
<form1>
• pull-down dynamically sets URL (self.location)
• variable form field based on selection above
</form>
<form2>
• contact info fields (go blank when pull-down changes URL)
</form>
Any thoughts on what I need to look into?