Hi all
this is my first post so please be gentle,
I have a form which uses the post method to send the input to my php page, What i need to do is check the input, Is post sending a string ? numberic ? float ? integer,
I thought I could write an if statement,
if(is_numeric($_POST['age'])){
echo "is numeric";
} else {
echo "sorry etc";
}
the problem with this is that it does not reconigse a float, The code returns "is numeric" which its not!
does anyone know a good way for me to achive this,
thanks