Jump to content


multi page forms

  • Please log in to reply
1 reply to this topic

#1 gr3g

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 March 2006 - 05:39 AM

Hi all

I have a .php page with a heap of form questions that posts to a processing php page.

Id like to break it up into multiple pages with the submit on the last page, how is this done?.

#2 anatak

  • Members
  • PipPipPip
  • Advanced Member
  • 407 posts
  • LocationJapan, Fukuoka prefecture, Kitakyushu City

Posted 23 March 2006 - 08:52 AM

You can do this two ways.
or you put all the input in session vars and you validate only at the last form.
or (I think better way) is to validate all the vars and write them to your db after each page.

so form1 submit points to form2
form2 validates the input from from 1 and points to form3

or you can combine the two ways and put the validated input in session vars untill you are at the last page and write then everything to your db.

hope this helps


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users