Posted by Johnny on 10/02/89 11:58
<jerryyang_la1@yahoo.com> wrote in message
news:1158499421.459740.219300@d34g2000cwd.googlegroups.com...
> 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");
> ?>
>
Navigation:
[Reply to this message]
|