multiple page form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prue_
Forum Commoner
Posts: 64
Joined: Thu May 07, 2009 10:34 pm

multiple page form

Post by prue_ »

hi! I have a multiple page form..(4 pages) the problem is I'm not able to go back and forth of the pages.. how can I save the user input (textboxes and dropdowns) so I'll be able to click next or back button without losing any data. can someone give me an idea how, or post post sample codes. I have tried the rememberme code, but the cookies were stored in a day, I want it to be clear when the user finally hits the submit button.Also it only remembers textboxes.. I'm thinking of having a session variable but don't know how to start with it... Many thanks!
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: multiple page form

Post by daedalus__ »

storing information in the session would be fine. you could store it wherever you want, really. in a text file, session, cookies, it depends on what you feel like writing

http://www.php.net/manual/en/book.session.php
Post Reply