View Full Version : strange else if
Lionel
09-27-2005, 02:17 PM
never mind ...
Andreas
09-27-2005, 02:21 PM
= is assignment, == is comparison
So the else if below thatsite will never be executed, eg. is useless.
In other words:
The code you posted is equivalent to
if ($scr == 1)
{
header ("Location: http://thissite");
}
else
{
$id = $_GET['id'];
header("Location: http://thatsite");
}
Lionel
09-28-2005, 07:19 PM
Thanks. I had found out the problem. I was not sending the $scr in the link, so there was nothing to read ...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.