I have a script, which contains three forms broken down with if statements, as follows:
if ($_GET['Step_3']) {
"Last Page"
} else ($_GET['Step_2']) {
"Second Page"
} else {
"Start Page"
}
Now, I have a random number that gets generated when the script loads, under the first page section, and I want to carry it through to the other three pages.
The submit button on each page is called Step_2 (on the first page), and Step_3 (on the second page). The last page will simply be a confirmation that everything has been submitted and went through sucessfully.
I tried adding the value, $tempid, as hidden field, but it doesn't seem to goto the second page.
Any ideas?