Unanswered: Pass Variables from html to thank you page
I have a standard Registration page that has about 12 fields. When submit is clicked it is processed through a php script, validated an email to me is generated and a mysql db is populated. Then a standard thank you page is called.
I would like to either pass the variable from the registration page to the thank you page so the user can confirm the data they are submitting OR just pull those variables back out of the db and display them on the thank you page. I have tried many suggestions with PRINT and ECHO and I am having a hard time. Can someone get me on the right track.
If you have the any id or username that is unique the you could just pass the variable alonge with the url like
header ("location: thanku.php?userid=$userid");
Then you can fetch the remaining parts form the DB. This could be one of the way.
Else pass some of the values through url that are relevent or is important to be shown to the user. Hope you know how to get the values from url. You have to use $HTT_GET_VARS[''];
To display the value you can use print or echo..
If you have more doubt in this case .. then be little more specific about what exactly you want. I will try to help to with what ever I can..
Your PHP.ini file "register_globals" directive should be set to Off, if it is on then you can access the form variables as globals directly by the form field name, otherwise you have to use PHP Variables to access from the POST or GET mothod the form. PHP provides the Global variables $HTTP_GET_VARS or $HTTP_POST_VARS to hold your form values. These associative arrays contain the name/value pairs submitted by your form. You should already be accessing these arrays to get the data to your database.
Put this near the top of your script on the confirmation PHP. This will set a variable with your name/values whether Get or Post method is used.