|
-
Oct 8th, 2007, 08:19 PM
#1
Thread Starter
Junior Member
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?
-
Oct 9th, 2007, 03:59 AM
#2
Fanatic Member
Re: Send Post Variables to Next Page
use session register(); and pass the values
Visual Studio.net 2010
If this post is useful, rate it

-
Oct 9th, 2007, 08:02 AM
#3
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).
-
Oct 9th, 2007, 01:18 PM
#4
Thread Starter
Junior Member
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?
-
Oct 10th, 2007, 01:54 AM
#5
Thread Starter
Junior Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|