Re: Re: Quickform Validation Ins and Outs
| From: | Ed Greenberg | Date: | Tue, 05 Jun 2007 14:23:55 +0000 |
| Subject: | Re: Re: Quickform Validation Ins and Outs | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27416@lists.php.net to get a copy of this message | ||
Mark Wiesemann wrote:
> Hi,
>
> Ed Greenberg wrote:
>
>> I have one of a set of validation rules that is "expensive" of
>> resources. I don't want to try to validate that rule unless all the
>> other rules pass.
>>
>> Is there a reasonable way to do this?
>>
>
> That depends on your rules. Using addFormRule() gives you the
> flexibility to define your rules in the order and depending on each
> other in the way you want to have them. But that's not as easy as using
> multiple addRule() calls, of course.
>
Many thanks for the pointer. Just what I was looking for.
</edg>