Forums / Developer / ezhttp - incorrect returned var values with multiple SELECT

ezhttp - incorrect returned var values with multiple SELECT

Author Message

rudy demo

Tuesday 05 April 2005 12:38:32 am

Hello.
I am using 3.5.
<b>Context</b>
I have a multiple select box, in example

<select size=4 name=myvar multiple>
<option value="name 1">name 1</option>
<option value="name 2">name 2</option>
<option value="name 3">name 3</option>
</select>

This var is passed via HTTP GET or POST (tried both)
<b>Problem</b>
I encounter the following problem:
<i>When I try to recover myvar via ezhttp, it returns only the last of selected values.</i>
It does not seem to pass/recover the array of values passed.
Any idea?
Many thanks.

rudy demo

Wednesday 06 April 2005 3:14:37 am

Thank to Wenyue!
Brackets were simply missing...

<select size=4 name=myvar[] multiple>

Fixed!