Re: HTML_Quickform and default values

From: Date: Thu, 23 Feb 2006 15:24:29 +0000
Subject: Re: HTML_Quickform and default values
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23104@lists.php.net to get a copy of this message
To add rule to elements in a group you have to use HTML_QuickForm::addGroupRule(). I don't think you can add individual rules to separate elements in a group unless you make your own validation function used in conjonction with HTML_QuickForm::addFormRule() Don't be sorry about your simple questions, at least I can answer them ;) Le 23 févr. 06 à 15:17, Paolo Sala a écrit :
arnaud sellenet bodin scrisse in data 02/23/06 14:23:
HI Did not try it myself, but I think with a named group you should handle default values this way :
$arrDefaults=array([...], '*mygroup*'=>array('daData'=>date ('d.m.Y')), [...]);
Thank you very and very much: that seems to solve my problem... and if I wish adding a roule to an element in a group, how can add it? I'm so sorry to submit these very simple questions but I've no idea where can I found the answer... Piviul --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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