I could swear this was working before but all of a sudden it isnt.
The problem is that it thinks 0 is either not a valid integer or not in the range -1000000000 and 1000000000 because it enters the elseif statements. Any ideas? If you need more of the code just tell me.
PHP:
$int_options = array(
"options"=>array
(
"min_range"=>-1000000000,
"max_range"=>1000000000
)
);
PHP:
elseif(!filter_var($_GET["min"], FILTER_VALIDATE_INT, $int_options))
{
echo("Range is between -1000000000 and 1000000000");
}
elseif(!filter_var($_GET["max"], FILTER_VALIDATE_INT, $int_options))
{
echo("Range is between -1000000000 and 1000000000");
}
The problem is that it thinks 0 is either not a valid integer or not in the range -1000000000 and 1000000000 because it enters the elseif statements. Any ideas? If you need more of the code just tell me.













