Re: HTML_QuickForm & Rules.

From: Date: Tue, 16 Dec 2003 14:09:30 +0000
Subject: Re: HTML_QuickForm & Rules.
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9573@lists.php.net to get a copy of this message
Sorry, I don't understand what you want to do ?
me neither, but i guess you want to make sure that the user enters something in both fields as that the two fields must be identically filled (re-enter email for example) just add all the rules. you can just add as many rules to a field as you wish. a) make sure that the user enters something in both fields -> addRule(.. required parameters here ..); b) check if the address in both field are equal -> add compare rule via addRule(.. compare parameters here ..); clear now? m

« previous php.pear.general (#9573) next »