Hi I ‘ve made a login prompt in php but know what I want to do is when you login 3 times with an invalid login the prompt doesnt come up. I’m new to php
heres my code
<?
if(!isset($PHP_AUTH_USER))
{
header(‘WWW-Authenticate: Basic realm=”Zona Restringida”‘);
header(‘HTTP/1.0 401 Unauthorized’);
echo “Zona Restringida:se requiere autorizacion.”;
exit();
}
else if(($PHP_AUTH_USER != ‘pepito’)||($PHP_AUTH_PW != ‘piscinas’))
{
header(‘WWW-Authenticate: Basic realm=”Zona Restringida”‘);
header(‘HTTP/1.0 401 Unauthorized’);
echo “Zona Restringida:se requiere autorizacion.”;
exit();
}
else
{
$nombre=strtoupper($PHP_AUTH_USER);
$pass=md5($PHP_AUTH_PW);
echo ‘Bienvenido’.$nombre.'<br/>Tu contraseña encriptada es:’.$pass;
}
?>
Thanks and cheers