Hi there,
I know this seems a simple question, but I can't pinpoint the reference.
Does anyone know how to check that a user has entered only numbers into a submitted form using php.
The problem is that the form converts the number into a string so that the command 'is_int' does not apply.
What I'm looking for, is probably the php equivalent of the Javascript function:
if (!parseInt(users.cell_number.value, 10)) {
e.t.c......
Thank you very much if you can help.
Regards,
Jason






Bookmarks