You can use a regular expression to see if they entered a decimal place:
if (eregi("..{1,}",$form_value) {
$errorMsg = "Quantity must be a whole number";
}
Of course you really only care that they entered in a valid integer, so you could just do this to see if all the characters are numeric and that there are not non numeric characters:
if (eregi("[0-9]{1,}",$form_value)) {
$errorMsg = "Quantity must be a valid whole number";
}
HTH
-- Rich Rijnders
-- Irvine, CA US