georgeocrawford
Technical User
Hi - hope you can help!
I am sending variables from a html form to a php script which validates the form.
If the form is OK, the script presents the contents of the form in a table for the user to check.
The user then clicks OK, and the data is emailed and added to a mySQL database.
The only problem is this:
On page 2 ("please check your details are correct...", the variables are displayed perfectly.
However, at the next step they seem to disappear, so that both the cells in the email and the fields in the new SQL entry are blank!
At some stage I have lost the variables - I'm confused.
Ever if I put a simple
on page 3 (the "thank you page", it is empty and prints nothing. I KNOW $name has had a value at some stage, because it prints on page 2.
Can anyone suggest what I've done wrong, and how to carry the variables' values on.
Thanks
I am sending variables from a html form to a php script which validates the form.
If the form is OK, the script presents the contents of the form in a table for the user to check.
The user then clicks OK, and the data is emailed and added to a mySQL database.
The only problem is this:
On page 2 ("please check your details are correct...", the variables are displayed perfectly.
However, at the next step they seem to disappear, so that both the cells in the email and the fields in the new SQL entry are blank!
At some stage I have lost the variables - I'm confused.
Ever if I put a simple
Code:
echo $name;
on page 3 (the "thank you page", it is empty and prints nothing. I KNOW $name has had a value at some stage, because it prints on page 2.
Can anyone suggest what I've done wrong, and how to carry the variables' values on.
Thanks