going back to a form without losing user data

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
ajarmeh
Forum Newbie
Posts: 9
Joined: Fri Oct 28, 2005 11:06 am

going back to a form without losing user data

Post by ajarmeh »

hi!!!!
a user fills a form then he browses several more (unknown count) pages, i want to incluse a button on the page for him to click on so he can go back to the form with HIS DATA still there... !!!! using the location or reload or pointing to the page again will reset the form and brings it up empty....
any ideas PLEASE!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

start learnin about sessions and session functions. you can store a whole lotta crap in session variables and then when he clicks a button, it can load all that from the session.
http://us2.php.net/manual/en/function.session-start.php
Post Reply