Categories | Question details Back To List | ||
Not receiving post values with combo as array When I name my combo as part of an array, e.g. name="roster[1041]" the values returned in POST are false and I receive no _new_value If I change the name to not use an array, e.g. roster1, it works fine Example, <select style="width: 200px;" id="combo_zone[1041]" name="roster[1041]"> ..options.. </select> <script> var z=dhtmlXComboFromSelect("combo_zone[1041]"); </script> print_r($_POST) Array ( [roster] => Array ( [1041] => false ) ) Answer posted by Support on Jan 19, 2009 06:24 Behavior caused by the way how form names defined, with such init as above you will have two fields with names roster[1041] roster[1041]_new_value PHP will not process second name correctly you can fix issue, buy adding next line after select-to-combo operaton combo.DOMelem_hidden_input2.name="roster_new_value[1041]" |