PDA

Click to See Complete Forum and Search --> : Send Post Variables to Next Page


Ataru Moroboshi
Oct 8th, 2007, 08:19 PM
How would I do this? Basically, I'm creating a page that keeps going through post variables everytime you click a button, kind of like if you press the button it goes to Post Variable 1, Then when you press the button it goes to the next page and adds Post Variable 2 and so on. Basically Post Variable 1, then Post Variable 2, and then Post Variable 3 would be accessible by the final button press. Can anyone give me tips for doing this? Should I try session id or something?

vijy
Oct 9th, 2007, 03:59 AM
use session register(); and pass the values

penagate
Oct 9th, 2007, 08:02 AM
No, don't use session_register, because it's deprecated.
Use session_start and then store values in the $_SESSION superglobal array. These will persist between pages until the session expires (by default, when the user closes their browser).

Ataru Moroboshi
Oct 9th, 2007, 01:18 PM
What would be a good method to use the $_SESSION array? Is there any specific method to using it?

Ataru Moroboshi
Oct 10th, 2007, 01:54 AM
Oh man, those session variables are exactly what I needed, my little php dealie is coming along smoothly. Mixed with POST variables and I'm very close to what I want! Points distributed!