Re: numeric characters
| From: | Daniel Clark | Date: | Tue, 02 Mar 2004 19:15:56 +0000 |
| Subject: | Re: numeric characters | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179290@lists.php.net to get a copy of this message | ||
Or you can us client side JavaScripting.
> Hello Dominique,
>
> Tuesday, March 2, 2004, 6:31:00 PM, you wrote:
>
> DA> Is there a way with php to force the user to put only numeric
> character in a text field ?
>
> No, because that's a client-side thing. You can however use the PHP
> function is_numeric() to check the data once it has been entered to
> ensure they are numbers and error out if not.