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
> Krushna
For more info chech the manual for predefined variables.
Giannis
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP-WIN] Problem retrieving form elements value on php Krushna Kumar
- Giannis Vrentzos