I have inserted a very simple line into my php code and although it should work it doesn't.
I just need to check that the user is not putting in commas or spaces in the numbers that s/he is inserting.
if(!is_int($precio))
{die ('Por favor - introduzca el Precio sin espacios, comas ni puntos');
}
Precio - comes from a text field in a html document.
What happens is that whatever I insert into the document - I always get this error coming up and the thing stops.
Why is it assuming that everything is not an integer?
Thanks a lot to anyone who can help (without calling me stupid .....)
Cheers
Jon