Validating form inputs are integers
I am designing a form to enter values into a MySQL database.
One field in the database needs to hold integers. I would like to be able to validate that the value a user enters into the associated form text box is an integer and not a double or text.
The problem I have is all numeric entries end up being type string.
Is there an easy way to validate that a user has typed in an integer?