influxer
08-29-2005, 04:39 PM
I have the following code in profile_add.php.
$code=$_GET['c'];
//check and see if propagated code is between 1-7 to prevent anything fishy
if($code && ($code!=1 || $code!=2 || $code!=3 || $code!=4 || $code!=5 || $code!=6 || $code!=7))
{
die('Invalid code. Please contact us if this problem persists.');
}
When I access this page as "profile_add.php?c=7" it is constantly executing the die() function!
How come?
$code=$_GET['c'];
//check and see if propagated code is between 1-7 to prevent anything fishy
if($code && ($code!=1 || $code!=2 || $code!=3 || $code!=4 || $code!=5 || $code!=6 || $code!=7))
{
die('Invalid code. Please contact us if this problem persists.');
}
When I access this page as "profile_add.php?c=7" it is constantly executing the die() function!
How come?