Hi,
Im slowly trying to teach myself php in my spare time however I need to get the is_numeric function working for my employers website.
In order to understand it I have been playing with very basic code, as far as I can tell it should work but its not.
Can anyone shed any light on why not??
[code] Calculation Form
Value 1:Value 2:
[/code]
[code]
PHP Test <? if(is_numeric($myNumber)) echo "The $myNumber variable is numeric"; else echo "The $myNumber variable is not numeric
"; if(is_numeric($myString)) echo "The $myString variable is numeric
"; else echo "The $myString variable is NOT numeric
"; ?> [/code]
When I run the html form and enter numeric values it still returns them as non numeric ?
Any help appreciated !
Regards
Ian