Re: headers and if statements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "matthew perry" <mwperry@xxxxxxxxxxx>

> <?if($logIn != 1) {header("Location: loginError.php");}?>
>
> Why does this direct me to loginError.php even when $logIn = 1?

It doesn't. Double check your value of $logIn by printing it out or using
print_r/vardump/etc...

---John Holmes...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux