Re: Problem retrieving form elements value on php
| From: | Giannis Vrentzos | Date: | Mon, 02 Dec 2002 07:18:46 +0000 |
| Subject: | Re: Problem retrieving form elements value on php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17236@lists.php.net to get a copy of this message | ||
Krushna Kumar wrote:
step 2 : I am trying to retrieve the values from the form in php using the code and check whether username and password are correct
file name - admin.php ======================================================================================================$txtuser=$_POST{'txtuser']; $txtpassword=$_POST['txtpassword'];
if (($txtuser=='user') && ($txtpassword=='password')) { //echo '<br>login success'; } else { //echo 'login failure'; header('adminlogin.php?login=F'); }
Regards KrushnaFor more info chech the manual for predefined variables. Giannis