Re: $header = "Location:........" being ignored!

From: Date: Tue, 21 Jan 2003 11:34:22 +0000
Subject: Re: $header = "Location:........" being ignored!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132385@lists.php.net to get a copy of this message
Looks like you're missing a closing bracket on the IF statement as well. Neil Shams wrote:
************************************************************************** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 17th January 2003 ************************************************************************** Hi Group, I basically have some simple code such as: ================================================== if ( $_POST['passwd'] != $db['password']
{    header("Location: loginfailed.html");
} //else $header = "Location: success.html"; ================================================== however, when I run this code, using a <FORM> to submit password, username, etc...... if the passwords do not match, the page is forwarded to success.html ! Is there anything obvious that I am doing wrong? Thanks, Shams p.s. I don't want to use else{} because I have lots of if() checks!
-- ---------------------- www.curvedvision.com ----------------------

« previous php.general (#132385) next »