RE: [PHP] Validating form field text input to be a specificvariab le type
| From: | Ford, Mike [LSS] | Date: | Wed, 07 Apr 2004 16:01:36 +0000 |
| Subject: | RE: [PHP] Validating form field text input to be a specificvariab le type | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182665@lists.php.net to get a copy of this message | ||
On 07 April 2004 15:48, William Lovaton wrote:
> I guess that works but every possible solution posted in this thread
> is a lot of lines of code to perform a simple validation.
Uh -- how are:
if(strcmp((int)$PageOptions['Default'],$PageOptions['Default'])==0)
if ((string)(int)$PageOptions['Default'] === $PageOptions['Default'])
"a lot of lines of code"?
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211