Re: Validating form field text input to be a specificvariable type
| From: | William Lovaton | Date: | Wed, 07 Apr 2004 15:59:31 +0000 |
| Subject: | Re: Validating form field text input to be a specificvariable type | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182664@lists.php.net to get a copy of this message | ||
Hi Curt,
El mi? 07-04-2004 a las 10:29, Curt Zirzow escribió:
> * Thus wrote William Lovaton (williama_lovaton@coomeva.com.co):
> >
> > or modify is_numeric() to explictly perform an integer validation:
> > is_numeric(mixed value [, bool is_integer = false])
>
> um.. ctype_digit().
Very nice! it works fine. The only issue is that it will return true if
the parameter is an empty string (""). Nothing that an empty() can't
fix.
-William