Posted: Wed Oct 08, 2003 10:37 am
Example : if you are using post method
Abdul Mannan
Code: Select all
PHP:
<?php
$enteredPass = $_POSTї'password'];
// Check to see if input was entered in the password field here
$correctPass = md5('CORRECTPASSHERE');
if (md5($enteredPass) == $correctPass)
{
echo 'Authenticated.';
}
else
{
echo 'Not Authenticated.';
} ?>Abdul Mannan