shellyBelly / dropdown-check-list

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

Cannot get selected items' values via $_POST #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
** What steps will reproduce the problem?
1. Use the dropdown-check-list within a form
2. Check a couple of boxes
2. Submit the form

** What is the expected output? What do you see instead?
I expect to get a comma separated list of the titles, or the values
from the selected items. I get the last selected item
instead.

** What is your environment?
-- DropDownCheckList version: 6
-- jQuery version: 1.3
-- jQuery UI version:
-- Browser and version: FireFox 4

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

<select id="s6" name="products multiple=multiple>
echo "<option>Product 1</option>";
echo "<option>Product 2</option>";
echo "<option>Product 3</option>";
</select>

Original issue reported on code.google.com by onh1...@gmail.com on 26 May 2011 at 4:00

GoogleCodeExporter commented 9 years ago
Can you please clarify which version of DDCL you are using?  I am not sure what 
you mean by version: 6.
(a thought -- if you mean DDCL 1.3 and jQuery 1.6, then there is the problem 
right there.  DDCL 1.3 does NOT work properly with jQuery 1.6)

FYI - I have had no other reports of problems with what gets posted on form 
submit. DDCL does not affect how the posting process works, it just provides an 
alternate way of visually affecting the underlying <OPTION>.  So can you 
confirm that your form submit works as you want it to if you leave DDCL out of 
the environment?

And can you also test it with a different browser as well (Safari, Chrome, IE)?

Original comment by womohun...@ittrium.com on 26 May 2011 at 3:47

GoogleCodeExporter commented 9 years ago
<select id="s6" name="products[]" multiple="multiple">
echo "<option>Product 1</option>";
echo "<option>Product 2</option>";
echo "<option>Product 3</option>";
</select>

And now you can loop through your table : $_POST["products"]

Original comment by vincent0...@gmail.com on 30 May 2011 at 12:06

GoogleCodeExporter commented 9 years ago
With the posting by vincent (and no further details from the original author), 
I am going to consider this issue closed.

Original comment by womohun...@ittrium.com on 15 Jun 2011 at 1:52

GoogleCodeExporter commented 9 years ago
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?

Original comment by kmots...@gmail.com on 3 Oct 2012 at 10:09

GoogleCodeExporter commented 9 years ago
I am using DDCL 1.4 with the .js files provided in the zip file as used on the 
sample html files.

Original comment by kmots...@gmail.com on 3 Oct 2012 at 10:37

GoogleCodeExporter commented 9 years ago
Issue 269 has been merged into this issue.

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