Re: Fw: [PHP] $header = "Location:........" being ignored!
| From: | Thomas Seifert | Date: | Wed, 22 Jan 2003 14:49:52 +0000 |
| Subject: | Re: Fw: [PHP] $header = "Location:........" being ignored! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132598@lists.php.net to get a copy of this message | ||
give some output in the if-construct to see if it even matches.
I believe there is some problem with the variables used in there,
the location should work though.
On Tue, 21 Jan 2003 06:09:01 -0600 remery@emeryloftus.com (Rick Emery) wrote:
> if ( $_POST['passwd'] != $db['password'] )
> { header("Location: loginfailed.html"); exit;
> }
> ----- Original Message -----
> From: "Shams" <shamskhanmalik@hotmail.com>
> To: <>
> Sent: Tuesday, January 21, 2003 3:48 AM
> Subject: [PHP] $header = "Location:........" being ignored!
>
>
> 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!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
Thomas Seifert
mailto:thomas.seifert@myphorum.de
http://www.MyPhorum.de