Helpful Information
 
 
Category: HTML & CSS
Selecting multiple things in a select box

How do I allow the user to select multiple values in a select box? I have seen this done before where the user can press control and click on extra selections.

Thanks for the help

Darksbane

<select type="multiple">

I believe. :)

Actually its

<select multiple>

I tried with the type="multiple" doesn't work but the the way it is uptop works for me just great. So i'm sure it'll work for you Darksbane:D:D:D

Originally posted by ACJavascript
Actually its

<select multiple>


Oh yeah - I don't use that widget too often if I hadn't made that clear for my lack of an accurate answer above. ;)

Anyway, to be XHTML compliant, you'd need to make it:

<select multiple="mutiple">

:)

Cool that works, now just one other question. How do I get the HTTP_POST_VAR to hold all the values selected? Currently it only holds the last value selected.

Thanks,
Darksbane










privacy (GDPR)