Re: HTML_QuickForm custom rules

From: Date: Wed, 22 Jan 2003 21:21:29 +0000
Subject: Re: HTML_QuickForm custom rules
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12671@lists.php.net to get a copy of this message
Take a look at the code in PEAR_INSTALL_DIR/HTML/QuickForm.php, what you are looking for is the '$_registeredRules' var. You can see in the same file the examples custom rules by checking the builtin rules, such as the function "_ruleCheckMimeType" When the docs do not say something: "Use the source Luke" ;-) HTH --- Lars Munch <lars@segv.dk> wrote: > Hi > > I am using HTML_QuickForm and I'm *very* happy with it. Nice work! > > I need to create a custom validation rule. I have been searching the > archives, but could not find any information on it. > > Could someone provide me with a small example? > > Thanks a lot > Lars Munch > > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.pear.dev (#12671) next »