paul
Ninja
I'm using this function from PHP: is_numeric - Manual
Now this works to see if the input is a numeral. But what should I do to check if the value is set in the first place ? I tried PHP: isset - Manual isset but that didn't swing it.
I'm sure it's something obvious I am missing. Any hints ? Thanks ?
PHP:
function is_whole_number($var){
return (is_numeric($var)&&(intval($var)==floatval($var)));
}
Now this works to see if the input is a numeral. But what should I do to check if the value is set in the first place ? I tried PHP: isset - Manual isset but that didn't swing it.
I'm sure it's something obvious I am missing. Any hints ? Thanks ?