quickform - Setting checked value for a radio in a group

From: 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, I’m trying to set a radio element to checked that’s in a group, but it doesn’t seem to be taking it, here’s 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 it’s 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

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