How to correct Quickform groupRule error?

From: Date: Thu, 11 Jan 2007 14:04:31 +0000
Subject: How to correct Quickform groupRule error?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26325@lists.php.net to get a copy of this message
Hi 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') ) ) ); I'm not sure where the error is in the above rule but I get this error: Fatal error: Call to a member function on a non-object in /home/b05bite/public_html/pear/PEAR/HTML/QuickForm/group.php on line 391 What am I doing wrong? How can I correct this? Thanks rav www.bitesoftware.com - software for a better lifestyle _________________________________________________________________ MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com

« previous php.pear.general (#26325) next »