help !
Publicado por kata (2 intervenciones) el 15/09/2006 14:16:21
<?php
if (($PHP_AUTH_USER!="A") || ($PHP_AUTH_PW!="123")) {
header('WWW-Authenticate: Basic realm="Acceso restringido"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}else{
header("Location:http://forms.php");
}
?>
quiero que cuando se de la clave correcta me muestre forms.php, pero he tenido problemas con esto.
thanks !
if (($PHP_AUTH_USER!="A") || ($PHP_AUTH_PW!="123")) {
header('WWW-Authenticate: Basic realm="Acceso restringido"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}else{
header("Location:http://forms.php");
}
?>
quiero que cuando se de la clave correcta me muestre forms.php, pero he tenido problemas con esto.
thanks !
Valora esta pregunta


0