Re: numeric characters
| From: | Richard Davey | Date: | Tue, 02 Mar 2004 18:35:01 +0000 |
| Subject: | Re: numeric characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179288@lists.php.net to get a copy of this message | ||
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.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html