Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiselect listbox

Status
Not open for further replies.

mmaz

Programmer
Nov 22, 2000
347
Hi,

I have a multiselect listbox on my form, and when the form is submitted, I only get the first value selected, instead of a list of values separated by commas.

<?print $lstSecteur; ?> //only prints the first value
<form>
...
<SELECT size=&quot;3&quot; name=&quot;lstSecteur&quot; MULTIPLE>
...
</form>

How can I get all the values?

Thanks,

Marie
 
found my answer in this forum:

<SELECT multiple name=&quot;foo[]&quot;>


will return an array.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top