Re: QuickForm this.form.submit(), errors don't show up
| From: | Mark Wiesemann | Date: | Mon, 19 Jun 2006 20:37:59 +0000 |
| Subject: | Re: QuickForm this.form.submit(), errors don't show up | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24433@lists.php.net to get a copy of this message | ||
Mark Steudel wrote:
> I added a little javascript to my submit button to provide feedback to the
> user when they submit a form, it also disables the submit butt. When I use
> it, the errors in the below form don't show up, is it because I'm using the
> javascript this.form.submit()? Why would it cause the errors not to show up?
>
[...]
> // At least one element is required
> $form->addGroupRule('ichkABC', 'Please check at least two boxes',
> 'required', null, 2);
To be a little bit more helpful than the other replies:
After the "2" there is something missing to make the code do that what
you expect ... (RFTM ;-))
http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.addgrouprule.php
Regards,
Mark