Re: Long forms
by "Rossi Designs" <webmaster(at)rossidesigns.net>
|
Date: |
Thu, 30 Mar 2000 11:10:46 -0500 |
To: |
"Rick Koch" <rrcominc(at)cris.com>, <hwg-techniques(at)mail.hwg.org> |
References: |
cris |
|
todo: View
Thread,
Original
|
|
When I do this using PHP I usually write the previous page's inputs into the
current form as hidden inputs
<?php
while(list($name,$value) = each($HTTP_POST_VARS) {
print "<input type=\"hidden\" name=\"$name\" value=\"$value\">\n";
}
?>
Then you change the form action and submit value as needed.
----- Original Message -----
From: Rick Koch <rrcominc(at)cris.com>
To: <hwg-techniques(at)mail.hwg.org>
Sent: Thursday, March 30, 2000 9:32 AM
Subject: Long forms
| We've all taken surveys or filled out long forms that span several
| pages. There's usually a Continue button at the bottom of each page
| and, of course a submit button, at the bottom of the last page.
|
| My question is, what is the method/code? that allows for form data to be
| "passed from page to page" (for lack of better phrased description) and
| then ultimately submitted from the last page? Or is each page getting
| submitted through the Continue button?
|
| I want to have a short form that can be submitted as is, OR can
| optionally send the visitor to a second page asking for substantially
| more info. Submitting that second page needs to include the first
| page's info as well. Is this making sense?!?!
|
| Any help greatly appreciated.
|
| Rick K.
|
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA