I need to check the $_GET['idnum'] to make certain it is a positive integer.
is_integer($_GE T['idnum']) is not working. I think it thinks it's a sting.
So I tried casting it to an int using, is_integer((int )$_GET['idnum']).
Then whatever I threw in the _GET variable passed as an integer, even
strings.
Any ideas or links or functions are much appreciated!
is_integer($_GE T['idnum']) is not working. I think it thinks it's a sting.
So I tried casting it to an int using, is_integer((int )$_GET['idnum']).
Then whatever I threw in the _GET variable passed as an integer, even
strings.
Any ideas or links or functions are much appreciated!
Comment