PDA

View Full Version : problem with combo multiselect and form submit



EdGarciaC
13 Apr 2012, 7:26 AM
When I do submit, the multiselect combo sends the values separatedly (example, code = 1, code = 2, code = 3) instead of into a string separated by ','
then i can't get all codes by $_POST['code'], ever I get the last code.
I'm doing anything wrong?

skirtle
15 Apr 2012, 5:38 PM
Moving this thread to the Q&A forum.

The behaviour you describe is correct. While it is possible to munge the request to use a CSV you'd be better off just writing your server to handle multiple parameters with the same name.