Another thing that you can do is cast the variable to integer

$int = (int) $_POST['data'];

"Dominique Anokre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Is there a way with php to force the user to put only numeric character in a
text field ?

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to