Re: QuickForm: Multiple types in same group same line?

From: Date: Thu, 02 Oct 2003 19:50:30 +0000
Subject: Re: QuickForm: Multiple types in same group same line?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8241@lists.php.net to get a copy of this message
Header1 DrowDown Header3 CheckBox [.....] [dropmenu] [.....] Y[] N[] [.....] [dropmenu] [.....] Y[] N[] [.....] [dropmenu] [.....] Y[] N[] [.....] [dropmenu] [.....] Y[] N[] [.....] [dropmenu] [.....] Y[] N[] I'd love to see any examples if anybody has any.
Try something like this: $g_buttons[] = & $this->createElement('submit', $this->getButtonName('next'), 'Save Changes'); $g_buttons[] = & $this->createElement('submit', $this->getButtonName('cancel'), 'Cancel'); $this->addGroup($g_buttons, 'buttons', null, ' ', FALSE); And substitute whatever type for "submit" that you like. The example above puts two submit buttons on the same line. You can do the same thing with a select and checkboxes, etc. like you have in your example above. - Brad

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