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