RE: [PHP] not getting form variables using POST.
| From: | Jiří HRADIL | Date: | Fri, 27 Oct 2000 12:42:42 +0000 |
| Subject: | RE: [PHP] not getting form variables using POST. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22324@lists.php.net to get a copy of this message | ||
Corrected both parts:
------------ part of html file ------------------
<form action="Login.php" method="post">
<input type="text" name="uname" size=10>
<input type="password" name="passwd" size=10> //input type must be
password, not hidden...
<input type="submit">
</form>
---------- part of php script --------
if($uname=="123456" && $passwd=="654321") //you must use = twice!
give_access();
else error_msg("Sorry");
---------------------------------------
Enjoy...
Jirka Hradil