![Picture of Tobbe Picture of Tobbe](/graphics/unknown.gif)
Tobbe - 2009-10-28 14:51:16
Definition of radiobuttons:
----
$form->AddInput(array(
"TYPE"=>"radio",
"NAME"=>"cr_type",
"ID"=>"cr_type_new",
"VALUE"=>"NEW",
"CHECKED"=>0,
"ValidateAsSet"=>1,
"ValidateAsSetErrorMessage"=>
"Du måste välja en Ändringstyp",
"LABEL"=>"<u>N</u>y",
"ACCESSKEY"=>"N"
));
$form->AddInput(array(
"TYPE"=>"radio",
"NAME"=>"cr_type",
"ID"=>"cr_type_change",
"VALUE"=>"CHANGE",
"LABEL"=>"<u>Ä</u>ndring",
"ACCESSKEY"=>"N"
));
$form->AddInput(array(
"TYPE"=>"radio",
"NAME"=>"cr_type",
"ID"=>"cr_type_del",
"VALUE"=>"DEL",
"LABEL"=>"<u>R</u>adera",
"ACCESSKEY"=>"N"
));
------
This doesn't show anything when form is submitted:
echo "<br>test: ".$form->GetSubmittedValue('cr_type');
Other values from other input types seems go work fine.
I'm a little confused about when to use ID and when to use name, could that be an issue here?
Hope you can help with this!