Results 1 to 5 of 5

Thread: Send Post Variables to Next Page

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    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?

  2. #2
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    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


  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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).

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    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?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    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
  •  



Click Here to Expand Forum to Full Width