It's not that killing... :p preg_match("#^-?[0-9]+$#",$_POST["var_int"]);
Not *that's* a mouthful ...
I was also thinking about that === operator.. And this: if(((string)((int)$_POST["var_int"]))==$_POST["var_int"])
Cute. Might actually work too! Wonder if there would be any difference in using == or === in your suggestion?
Jc
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php