RE: [PHP-DB] headers and if statements

From: Date: Fri, 30 Apr 2004 21:29:24 +0000
Subject: RE: [PHP-DB] headers and if statements
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-34223@lists.php.net to get a copy of this message
I think that would try to set $login=1. Need two == > Have you tried: > <?php if (!$login=1) {header("Location: loginerror.php");)?> > > -----Original Message----- > From: Daniel Clark [mailto:dclark@nwlink.com] > Sent: Friday, April 30, 2004 4:19 PM > To: matthew perry > Cc: php-db@lists.php.net > Subject: Re: [PHP-DB] headers and if statements > > > Hum. Is $logIn null at times?!?! > >> <?if($logIn != 1) {header("Location: loginError.php");}?> >> >> Why does this direct me to loginError.php even when $logIn = 1? >> >> - Matt > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#34223) next »