Hi Panos,
I tried your sc_forms_elements with select. If I try with MULTIPLE only one value is returned, exactly the last one and a count($_POST['my_select']) gives one.
I saw that in the Html generated code the name of the select is 'sel_countries' and not 'sel_countries[]' with brackets as it should be for a multiple select. So I added [] in the code above, but the array is empty, no value. The demo page has no button to see the result.
Another question: why did you not put the parameter 'select_prompt_text' like you did in linked selects? It is very useful.
Thanks for your work and answer.
Ste
Hi Panos,
thanks for your answer, it helped, now the array $_POST['sel_countries'] contains the selected values.
But I can't make the parameter "selected" work properly yet.
I select a couple of countries. If I reload the form with $_SERVER['PHP_SELF'] I'd expect to find the items contained in $_POST['sel_countries'] selected in the select, but no selection appears. Where is my error? In non MULTIPLE selects the parameter "selected" works fine.
just checked the code and $selected parameter expects comma separated the values for multi select.
I think if you change to implode(',',$_POST['sel_countries']) it will work.