HTML_QuickForm_select::setChecked() problem

From: Date: Tue, 02 Mar 2004 11:05:52 +0000
Subject: HTML_QuickForm_select::setChecked() problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11050@lists.php.net to get a copy of this message
Hi Guys Any ideas why the following doesn't set this radio button to checked? require_once 'HTML/QuickForm/radio.php'; $radio =& new HTML_QuickForm_radio('profile', null, 'Create new profile', 'new'); $radio->setChecked(true); $form->addElement($radio); See the following output is wrong: <tr> <td style="white-space: nowrap; background-color: #F0F0F0;" align="left" valign="top" colspan="2"> <b><input name="profile" value="new" type="radio" id="qf_915973" /><label for="qf_915973">Create new profile</label></b> </td></tr><tr> Thanks :-) Alex

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