Re: Validating multiple form fields together with one rule
| From: | Justin Patrin | Date: | Fri, 30 Mar 2007 03:56:38 +0000 |
| Subject: | Re: Validating multiple form fields together with one rule | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26948@lists.php.net to get a copy of this message | ||
On 3/29/07, David Sanders <dsanders@baselinesolutions.com.au> wrote:
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?addFormRule is always a good fallback for non-standard rules. -- Justin Patrin