I don't understand this gettype function. I want to check a form to be sure only an integer has been entered by the user. So I figured I would use gettype to check it. Only problem is gettype is printing my numbers as strings. Why???
My field is:
<input type="text" name="books" size="20">
You hit the submit button and I test the field with
<?echo gettype($books);?>
Then I could use a simple if statement. But it is printing 1, 23, 56 etc. as strings. I don't know why??
Thanks.