Re: PHP Form Field Validation

From: Date: Sun, 18 Jul 2004 23:34:39 +0000
Subject: Re: PHP Form Field Validation
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-190947@lists.php.net to get a copy of this message
Simple as that eh...? If (formfieldname = empty()) { Do something { Else { do something else } ??? am I on the right tracks...? -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "John W. Holmes" <holmes072000@charter.net> wrote in message news:40FB02C0.9080409@charter.net... > Harlequin wrote: > > > Just wondering if there's a quick and easy way to validate form fields using > > PHP. > > > > Not really that concerned with actual content by using REGEX but want to > > ensure users have at-least bothered to put something in and if not display > > an error with the form field's name maybe. > > empty() > > -- > ---John Holmes... > > Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ > > php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#190947) next »