quickform - Setting checked value for a radio in a group
| From: | Mark Steudel | Date: | Thu, 20 Mar 2008 22:03:35 +0000 |
| Subject: | quickform - Setting checked value for a radio in a group | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28663@lists.php.net to get a copy of this message | ||
Hi All,
Im trying to set a radio element to checked thats in a group, but it
doesnt seem to be taking it, heres what I am trying:
$radio = &HTML_QuickForm::createElement( 'radio', 'reserve', null,
'none' );
$radio->setChecked( true );
$slot['reserve_none'] = $radio;
$this->addGroup($slot, 'group[slot][' . $i . ']', 'Slot ' . $i .
':',
', ');
The radio button shows up, but its not checked.
Thanks, Mark
------------------------------------------
Mark Steudel
cell: 206.375.7244
email: msteudel@gmail.com
Our Work
http://www.mindfulinteractive.com
Our Play
http://www.steudel.org/blog