Is there a way to wheck wether the number inside a variable is an integer or not?
if (gettype($variable)=="integer") echo "its an integer!"; else echo "its not an integer!";
-- Keith Bussey kbussey@wisol.com Programmer - WISOL.com (514) 398-9994 ext. 225
Thanks. It doesn't works like I wish it did though. When the number is entered in a form, gettype returns "string". Any idea?
Does anyone know the best way to solve this? Presumably everything from a ftext box is a string, so how can we chech that it is a number?
Mark