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

From: Date: Fri, 03 Oct 2003 00:05:27 +0000
Subject: Re: Re: QuickForm: Multiple types in same group same line?
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8243@lists.php.net to get a copy of this message
It's weird becuase only the raido buttons have the problem. WHen I do $id[] that's when I get the repeat problem. When I do $id['emtype'] that's when I get the looping problem with repeating radio buttons.
Try adding a counter to each group so that they unique names $id['emtype_' . $i] HTH Graham
Bradley Batt wrote:
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
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Graham Clarke GrahamC@53Tech.com www.53Tech.com 603.643.9955

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