Seeing var in one page created in another page(form)
Posted: Fri Jun 20, 2008 4:10 pm
Hi,
Rank newbie here; sandboxxing with forms; XP Pro SP2 PHP 4.4, local Apache server setup. First post to this forum.
Have a file called entry.php:
In it, I generate a random number $num. Visitor is then to copy that number into a textbox via <input ... "pw"..>. Post is to another "check" file called check.php.
check.php sees "$pw" fine. But it turns out I don't know how to post the original "$num" var forward in order to compare it to "pw" to see if correct characters were input.
Relevant code stubs are attached. All this part is for is to validate the user copies the correct random number into the textbox.
Any hints?
TIA
I attached two files and "Added" them but see no evidence of them; hope they made it in.
Rank newbie here; sandboxxing with forms; XP Pro SP2 PHP 4.4, local Apache server setup. First post to this forum.
Have a file called entry.php:
In it, I generate a random number $num. Visitor is then to copy that number into a textbox via <input ... "pw"..>. Post is to another "check" file called check.php.
check.php sees "$pw" fine. But it turns out I don't know how to post the original "$num" var forward in order to compare it to "pw" to see if correct characters were input.
Relevant code stubs are attached. All this part is for is to validate the user copies the correct random number into the textbox.
Any hints?
TIA
I attached two files and "Added" them but see no evidence of them; hope they made it in.