Re: How to correct Quickform groupRule error?
| From: | Mark Wiesemann | Date: | Thu, 11 Jan 2007 14:22:13 +0000 |
| Subject: | Re: How to correct Quickform groupRule error? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26326@lists.php.net to get a copy of this message | ||
rav k wrote:
> I always seem to get this error when attempting to use Quickform to have 2
> different elements on the same line. For instance:
>
> $form = new HTML_QuickForm('browsebar', 'get');
> $buttons[] = &HTML_QuickForm::createElement('text', 'tags', null);
> $buttons[] = &HTML_QuickForm::createElement('submit', 'submitbutton',
> 'Browse now');
> $form->addGroup($buttons, 'buttons', null, ' ');
>
> $form->addGroupRule('buttons', array(
> 'tags' => array(
> array('No punctuation required', 'nopunctuation')
> )
> )
> );
This code works fine. You should also post the other parts of your code.
Regards,
Mark