Hey Guys
I have a really simple login.
The problem is it wont work online, works fine locally.
When i submit the username and password, it just goes back to the login.
Is it my server?? It supports php, i know that.
Can anybody tell me whats wrong??
Here's the script:
...........................................................................
<?php
$LOGIN = "username";
$PASSWORD = "password";
function error ($error_message) {
echo $error_message."<BR>";
exit;
}
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $LOGIN) && ( $PHP_AUTH_PW ==
"$PASSWORD" )) ) {
header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
header("HTTP/1.0 401 Unauthorized");
error("Unauthorized access...");
}
?>
<HTML><HEAD><TITLE>Your protected page</TITLE></HEAD>
<BODY BGCOLOR="white">
<BR><BR><P ALIGN="Center"><FONT FACE="Arial, helvetica" SIZE="+2"
COLOR="#336699"><STRONG><EM>My protected page</EM></STRONG></FONT></P><BR>
</BODY></HTML>
Shaun