Re: numeric characters
| From: | Ben Ramsey | Date: | Tue, 02 Mar 2004 18:49:05 +0000 |
| Subject: | Re: numeric characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179289@lists.php.net to get a copy of this message | ||
If you wanted to force them to put in valid numeric characters, you would have to use JavaScript (client-side). However, if you wanted to verify the information from the server side, you could use is_numeric() to check whether the value is a number.
http://www.php.net/is-numeric
Dominique Anokre wrote:
Is there a way with php to force the user to put only numeric character in a text field ? thanks-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey