Re: what kind of input type should i use?



I have a form in which a user needs to be able to multi select items from a
list of around 100 items.

My question is what is the best way to do this? i was thinking of doing
check boxes beside each item that the user wants to select but this creates
a very long page (since there are 100 items).  are there any other options
for me?


This is HTML question. You can do it using <select multiple>. If you use
it like you see below (use "[]" in "name"), then you'll get array filled
with values of the selected options.

<select multiple name="some_name[]" size="10">
 <option value="1" selected>first option</option>
 <option value="2" selected>second option</option>
 <!-- more here -->
 <option value="99">99 option</option>
 <option value="100">100 option</option>
</select>

You'll probably have to tell the user that he can multiselect using
Ctrl or Shift key (like selecting multiple files in Windows Explorer).

You may also use multiple checkboxes placed in scrollable <div>.


Hilarion .