google-code-export / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
1 stars 0 forks source link

Only get "Aray" or the last selection in submit form #269

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
** What steps will reproduce the problem?
Hi,
This is what I have on the form:

<select id="s1" multiple="multiple" size="1" name="summary3[]">
<option>Short</option>
<option>Medium</option>
<option>Long</option>
</select>

And on the submit file I have: '$_POST[summary3]'

But on the display I get: Array. Before using the square brackets on the 
<select> tag I was only getting the last selection. Any ideas?

** What is the expected output? What do you see instead?
on the display I get: Array. instead of the list of selected items separated by 
comma. Before using the square brackets on the <select> tag (summary3[]) I was 
only getting the last selection. Any ideas?

** What is your environment?
-- DropDownCheckList version: 1.4
-- jQuery version:jquery-1.6.1.min.js
-- jQuery UI version:jquery-ui-1.8.13.custom.min.js
-- Browser and version:Google Chrome Version 22.0.1229.79 m AND IE9

** Please provide any additional information below/Please attach sample html

<select id="s1" multiple="multiple" size="1" name="summary3[]">
<option>Short</option>
<option>Medium</option>
<option>Long</option>
</select>

And on the submit file I have: '$_POST[summary3]'

Original issue reported on code.google.com by kmots...@gmail.com on 3 Oct 2012 at 1:44

GoogleCodeExporter commented 9 years ago
I believe your original posting to issue 186 was correct.  This looks like a 
duplicate to me.

I can offer no support on the server side of things.  I have no experience with 
PHP and no test environment to work with.

The first thing you need to do is to run your HTML page leaving DDCL out of the 
picture.  Make sure your server side processing operates as expected with a 
naked SELECT.  Then add DDCL back into your form.

Original comment by womohun...@ittrium.com on 3 Oct 2012 at 2:00