Re: Quickform Validation Ins and Outs
| From: | Mark Wiesemann | Date: | Tue, 05 Jun 2007 09:29:35 +0000 |
| Subject: | Re: Quickform Validation Ins and Outs | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27414@lists.php.net to get a copy of this message | ||
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.
Regards,
Mark
--
http://www.markwiesemann.eu