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'];?>" />

Next chapter...

What you will learn in the next chapter:

  1. What is form validation
  2. CTYPE functions
  3. Example - Validation script
Home » PHP Tutorial » PHP Form
PHP HTML Forms
PHP GET and POST
PHP Form Elements
PHP Form TextField
PHP Form Password Field
PHP Form Textarea
PHP Form CheckBox
PHP Form Select
PHP Form RadioButton
PHP Form Submit
PHP Form Reset
PHP Form Push Button
PHP Form Image
PHP Form Hidden Field
PHP Split Form Across Pages
PHP Form Validation
PHP Form File Upload
PHP Form Demo
PHP Form Empty Fields
PHP Form Multi-Value Fields
PHP Redirect after a Form Submission