Using tpl_form in PHPLib, how can I set which button in a set of radio buttons is checked? setting "checked"=>"1" only works for checkboxes.. it seems that it automatically sets the last button in the radio button set to be checked and I can't find any way to override this. Using "extrahtml"=>" checked " only results in multiple occurances of "checked" in the html code.
this is in a file called edit.inc...
$this->form_data->add_element(array(
"type"=>"radio",
"name"=>"enclosure",
"value"=>"yes"
));
$this->form_data->add_element(array(
"type"=>"radio",
"name"=>"enclosure",
"value"=>"no"
));
And this is in the edit.ihtml file...
Yes
<?
$this->form_data->show_element("fuel_tank", "yes");
?>
No
<?
$this->form_data->show_element("fuel_tank", "no");
?>