php-form-builder
php-form-builder copied to clipboard
Pre-defined values for select inputs are not set
When generating a select-Input the given value is neglected and always the first option ist set initially. E.g. $form->add_input("Field", array("type" => "select", "options" => array ("1"=>"1", "2"=>"2"), "value"=>"2"), "field"); will generate a select box where "1" is selected initially, not "2". Expected behaviour would be that "2" is selected.