You are here: Re: Password Access, what have I got wrong ! « All PHP « IT news, forums, messages
Re: Password Access, what have I got wrong !

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация