Send Post Variables to Next Page
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?
Re: Send Post Variables to Next Page
use session register(); and pass the values
Re: Send Post Variables to Next Page
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).
Re: Send Post Variables to Next Page
What would be a good method to use the $_SESSION array? Is there any specific method to using it?
Re: Send Post Variables to Next Page
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!