Re: Html_Quick Form rule problem
| From: | Justin Patrin | Date: | Tue, 24 Oct 2006 23:33:47 +0000 |
| Subject: | Re: Html_Quick Form rule problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25614@lists.php.net to get a copy of this message | ||
On 10/24/06, Atif Khan <wequar98@gmail.com> wrote:
I having problem with the following rules. // Define filters and validation rules $ClientLoginForm_obj->addRule('cust_email', 'Email is incorrect', 'email','',''); $ClientLoginForm_obj->addRule('cust_email', 'Email is required', 'required','',''); $ClientLoginForm_obj->addRule('cust_passwd','Password is required', 'required','',''); $ClientLoginForm_obj->addRule('cust_passwd','Password is small', 'minlength','3',''); If i enter a valid email but no password, it some how goes through. It should now allow at all to go forward if any of the fields are blank.Are you checking for errors on return? See: http://pear.reversefold.com/dokuwiki/doku.php?id=pear:error_handling -- Justin Patrin