For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2006 > Re: [PEAR] Html_Quick Form rule problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Html_Quick Form rule problem
Justin Patrin

2006-10-30, 7:07 pm

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/dokuwik...:error_handling

--
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com