PHP Split Form Across Pages

Description

To split up one form into several smaller forms, and place each form in its own pages, we can pass data from page to page by using hidden form elements, storing answers in session values, or storing answers in a database.

Using hidden form elements the easiest to program and the easiest to debug.

We can view the HTML source code at any time to see if things are working.

The following code shows how to append the hidden form tags to carry over data to next page:


<input type="hidden" name="Name" value="<?php print $_GET['Name']; ?>" />
<input type="hidden" name="Password" value="<?php print $_GET['Password'];?>" />




















Home »
  PHP Tutorial »
    Form »




PHP Form
Form Demo