Quote:
|
Originally Posted by Order
Something tells me that GET variables are always strings, part of the HTTP Specification I believe (could be wrong), so is_numeric would return false always with a GET variable.
|
Yeh i got the same feeling...
Just do a $somevar = $_GET['someid'] + 0;
That should change it to int if its a number, but if its a string it will not change it, just add a zero at the end of the line. And keep the is_numeric check when using this.