Hello Ron,
the value of single radio buttons ist set with the $value-parameter in
show_element($name, $value). You should omit the checked-element in
add_element. And add a multiple-element. And you don't need two add_element's!
Usage:
$form->add_element(array(
"name"=>"release",
"type"=>"radio",
"value"=>"Y",
"multiple"=>1
));
.....
$form->show_element("release","Y");
$form->show_element("release","N");
....
This produces two radio buttons with values "Y" and "N". The "Y"-Button
will be checked (because of "value"=>"Y" in add_element)
hope this helps
Peter Kursawe
|