Supporting a Multiple-Page Form in PHP

Q

How To Support Multiple-Page Forms in PHP?

✍: FYIcenter.com

A

If you have a long form with a lots of fields, you may want to divide the fields into multiple groups and present multiple pages with one group of fields on one page. This makes the a long form more user-friendly. However, this requires you to write good scripts that:

  • When processing the first page and other middle pages, you must keep those input values collected so far in the session or as hidden values in the next page form.
  • When processing the last page, you should collect all input values from all pages for final process, like saving everything to the database.

 

Processing Web Forms in PHP

⇒⇒PHP Tutorials

2016-11-05, 445👍, 0💬