HashanChamara / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
0 stars 0 forks source link

Radio buttons #210

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Radio buttons does not work correctly in the latest version.

$form->addElement(new Element_Radio("Radio Buttons:", "RadioButtons", $options, 
array("value" => "one"))); will only return 1 radio button and then the rest of 
the options on the same one. Ive tried alot of different ways but they all 
return the same thing.

Please help.

Original issue reported on code.google.com by tonei...@lyse.net on 31 Dec 2013 at 1:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
How are you building the options array? It can be in either of these formats:
$options = array("Option #1", "Option #2", "Option #3");
$options = array("value1" => "Option #1", "value2" => "Option #2", "value3" => 
"Option #3");

Original comment by pvcsnat...@gmail.com on 1 Feb 2014 at 3:17