Re: QF: client-side group rule

From: Date: Tue, 22 Jun 2004 21:11:52 +0000
Subject: Re: QF: client-side group rule
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13257@lists.php.net to get a copy of this message
Hi, Mark Drago wrote:
Did you try with addGroupRule ?
Correct me if I'm mistaken, but addGroupRule() would add separate rules for each text box. My end goal is to get one error message per IP address, not for each text box. So, there are four separate text boxes, and if all four of them are left blank I only want one error message to be reported, not four. However, if the user fills out 3 out of the 4 text boxes, I still want the same error to be displayed.
addGroupRule() works exactly this way. I must admit, it is much faster to just try the suggestion instead of making assumptions, writing to the list, waiting for responses.

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