Passing variables across two pages, one after another
Posted: Thu Jan 15, 2009 4:21 pm
Hello! First of all, thank you to anyone that took the time to read this.
I'm trying to have a user input information through a form. Once they press submit, the action: takes it to a functions.php page where it processes the information and inputs it into a database.
Then it redirects the user to the next part of the page (where they can upload a picture). However, I want to place the image location on the same row as the other info. Each row has a unique id that is NOT their UID (user id), so I can't use the $_SESSION['uid'] method.
So my question is... how do I get the unique rowid created from the first page form and use it on the third page (after processing the initial information through the second page) ?
Thank you!
edit: So i've seen that you can either do so using session variables or through hidden fields... which one is better? : x
and how are hidden fields used in this way?
Best,
Chris
I'm trying to have a user input information through a form. Once they press submit, the action: takes it to a functions.php page where it processes the information and inputs it into a database.
Then it redirects the user to the next part of the page (where they can upload a picture). However, I want to place the image location on the same row as the other info. Each row has a unique id that is NOT their UID (user id), so I can't use the $_SESSION['uid'] method.
So my question is... how do I get the unique rowid created from the first page form and use it on the third page (after processing the initial information through the second page) ?
Thank you!
edit: So i've seen that you can either do so using session variables or through hidden fields... which one is better? : x
and how are hidden fields used in this way?
Best,
Chris