Page 1 of 1

Passing values from one form to several forms

Posted: Thu Mar 06, 2003 8:05 pm
by JeffS
First, let me say I'm a PHP newbie but I'm learning to love using.
Second, here's the situation.

On Form 1 the user fills in the fields. On Submit, the user is sent to Form 2. This form uses a function to grab the $_POST vars and display it on the form so the user can see a confirmation page. I want the user to be able to click on a button on Form 2 to actually save the record. The problem is, I don't know how to store those $_Post vars in Form 2 other than using hidden fields (which I prefer not to do).

So...how do I "store" those $_Post vars in Form 2 so I can use them again when the user does a Submit from Form 2? I want to send those vars to a function to save the record.

TIA for your help.

Jeff

Posted: Thu Mar 06, 2003 8:10 pm
by hob_goblin

Sessions

Posted: Thu Mar 06, 2003 8:33 pm
by JeffS
What happens to the session if the user doesn't complete the process?
Does the session automatically time out?

Jeff

Posted: Thu Mar 06, 2003 9:04 pm
by daven
Eventually. I think PHP has a default timeout of 24 minutes (ie--no activity for 24 minutes destroys session), and you can change it around.

Sessions Destroyed!!

Posted: Thu Mar 06, 2003 9:20 pm
by JeffS
Thanks for the info. I'm now delving into the books...I bought a ton of them ("PHP/MYSQL for Dummies", "PHP Advanced" by Ullman, "Dreamweaver MX & PHP", "PHP Functions Reference"....and so on).

Jeff