Passing values from one form to several forms

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
JeffS
Forum Newbie
Posts: 12
Joined: Thu Mar 06, 2003 8:05 pm

Passing values from one form to several forms

Post 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
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

JeffS
Forum Newbie
Posts: 12
Joined: Thu Mar 06, 2003 8:05 pm

Sessions

Post by JeffS »

What happens to the session if the user doesn't complete the process?
Does the session automatically time out?

Jeff
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post 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.
JeffS
Forum Newbie
Posts: 12
Joined: Thu Mar 06, 2003 8:05 pm

Sessions Destroyed!!

Post 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
Post Reply