Re: Password Access, what have I got wrong !




<jerryyang_la1@xxxxxxxxx> wrote in message
news:1158499421.459740.219300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Trying to get this working..
But I'm getting it wrong !
Any Ideas ?
Thanks
<snip/>

if ($user == $username) {
if ($pass == $password) {
file://if user and password are OK, redirect to here
header("location:" . $_SERVER['SERVER_URL'] . "search.php");
// add an exit here (see: http://us3.php.net/manual/en/function.header.php)
exit;

}
}
file://end of if results
}
header("location:" . $_SERVER['SERVER_URL'] . "unauthorised.html");
?>





.