I am trying to write a block of code in php that will echo an error if the value entered in a text box is not an integer.The logic behind the code seems correct but when the form is processed it returns the erro message even if the value entered is an int.