Jump to content

Archived

This topic is now archived and is closed to further replies.

gr3g

multi page forms

Recommended Posts

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?.

Share this post


Link to post
Share on other sites
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

anatak

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.