How To Support Multiple-Page Forms


How To Support Multiple-Page Forms? - PHP Script Tips - Processing Web Forms



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.

2007-04-22, 4726👍, 0💬