View Full Version : Making A Form Span Across Multiple Pages
John_Saunders
09-18-2002, 03:01 AM
I have a form that I put together in PHP and it is VERY long so I have to break it up into two or three pages. Can somebody tell me how I can make it so it will do this? I added an error checking section that will validate the data in PHP. I would like it to validate the data and if it is OK, it will go to the next page of the form. On the first page of the form, the visitor has to enter a username/password so i don't think the hidden form value option will work.
Any advice would be greatly appreciated.
Regards,
John
Spookster
09-18-2002, 02:45 PM
Probably the best option here would be to use sessions and just store that data in the session as the user progresses from page to page.
John_Saunders
09-18-2002, 02:47 PM
Hi Spookster,
Thanks for your reply. I looked over the sessions section on php.net, but it did nothing but confuse me. Can you give me an example on what I would need to do this so it will work across multiple pages?
Thanks,
John
Spookster
09-18-2002, 04:02 PM
Here is a simple tutorial on using session to store data and be able to maintain the session with those variables containing the data from page to page.
http://www.phpbeginner.com/columns/enygma/sessions
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.