i need help with this code its not working right it works only sometimes please please help me thanks
<?
$USER = "admin";
$PASS = "admin";
$url = "WebPagehere";
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $USER) && ( $PHP_AUTH_PW == $PASS)) ) {
header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
header("HTTP/1.0 401 Unauthorized");
bad("Your password is wrong or you are unauthorized to see this page. Go <a href=$url>back</a>");
}
?>
<head>
<title>pass protected</title>
</head>
<body>
PASS PROTECTEED INFO!!!!!!!!!!!!!!!!!!
</body>