Re: Validating form field text input to be a specificvariable type

From: Date: Wed, 07 Apr 2004 17:39:37 +0000
Subject: Re: Validating form field text input to be a specificvariable type
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-182685@lists.php.net to get a copy of this message
No, as this would be yet another line of source. Maybe get those guys to add another function ctype_digit_and_not_empty(); -- red [...] > > * 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. [...]

« previous php.general (#182685) next »