Re: HTML_Quickform and group rules
| From: | pt2002 | Date: | Mon, 06 Dec 2004 10:35:05 +0000 |
| Subject: | Re: HTML_Quickform and group rules | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16041@lists.php.net to get a copy of this message | ||
Hi
Thank you for your answer.
Rules for single elements are working fine as your example.
I would like to know if it is possible to do the same for AddGroupRule() or
if I need to have AddRule() for each element of the group.
Greetings
""Cédric fournier"" <cfournier@itop.fr> escreveu na mensagem
news:200412061008.iB6A8R5T016908@smtp7.clb.oleane.net...
> Hi,
>
> You have to change the addRule sample to add the client-side validation.
>
>
> Something like this for a required input =>
> $form->addRule('Input_name','You have an
> error','required',null,'client');
>
>
> Hope that helps you.