Re: Validating multiple form fields together with one rule
| From: | David Sanders | Date: | Fri, 30 Mar 2007 02:45:54 +0000 |
| Subject: | Re: Validating multiple form fields together with one rule | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26947@lists.php.net to get a copy of this message | ||
The one thing the documentation forgets to mention is that using an array
to specify multiple elements can also be used for your own callbacks.
Within your callback, the argument passed will become an array.
> If I want to set up an HTML_QuickForm validation rule that involves two of
> the fields, do the elements have to be in a group? I'm looking to retain
> layout flexibility in not positioning the elements together, but do need
> to
> check the values together in one validation rule. Any suggestions?
--
David Sanders
shangxiao