Forum Moderators: phranque

Message Too Old, No Replies

Using multiple pages for ONE form.

Using 2 web pages for one form?

         

bartainer

5:23 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



Hello,

Me again :). How do I create a form that uses multiple pages. Keep in mind, making a form is NOT the issue! However, creating a form with multi pages is. My program is DW!

E.g. I'm the person completing the form and I have completed the first 10 questions on one page, now I must hit next to go to the following page to complete the form. Please tell me how this is possible. My mailer is PHP.

Thanks.

Captaffy

6:35 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



When the user submits the first form page (by clicking the next button), have it be processed by a php (or your server side language of choice) file that builds the next form. While building the form, it will include a number of hidden input fields (input tags of the type hidden) that contain the information that the user provided on the first page.

j4mes

6:48 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



e.g.:

First page:

<form action="second_page.php" method="post"> 
<input type="text" name="input_one" />
[...]
</form>

Second page:

<form action="form_processor.php" method="post"> 
<input type="hidden" name="$_POST['input_one']" />
<input type="text" name="input_two" />
[...]
</form>

:-)

bartainer

6:57 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



Thanks.