Re: WEB LOG

From: Date: Mon, 24 Sep 2001 14:04:34 +0000
Subject: Re: WEB LOG
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-68513@lists.php.net to get a copy of this message
At 07:08 AM 9/24/2001, Chris Herring wrote:
OOPS, again, elseif isn't what needs to be done. Ok, here we go. if $pwd == $real_pwd { header ("Location: http://therealsite"); } else { header ("Location: http://badsite"); }
For the record, that won't stop someone from going to the destination page if the password doesn't match, which is what the person asked about. All this will do is send them a redirect to an error page if the password doesn't match, it doesn't prevent anyone at all from hitting, in your example, http://therealsite. -j --------------------------------------------------------
Jeffrey Paul      sneak@datavibe.net      (877) 748 3467
ICQ: 14295546     AIM: kw34hd1     NXTL/DC: 130*21*16749
PGP: 0xF50BB9D7 A21AFD828C30EC77CCCC545DA0B3F501F50BB9D7

« previous php.general (#68513) next »