Allibsus    
main page | buy now | interactive tour | demo | support | contact us
 



main page
buy now
tour
demo
support
contact us



Knowledge Base / How do I add a multiple select list?

When adding a multiple select list, it is important to have the square brackets [] placed after the field name. For example, let's create a select list for the type of pets are in the household. And let's name it Pets[]. It is important you add the word multiple as an attribute for the <select> tag to allow the user to select multiple values.

<select name="Pets[]" size="3" multiple>
<option value="Dogs">Dogs</option>
<option value="Cats">Cats</option>
<option value="Birds">Birds</option>
<option value="Fish">Fish</option>
<option value="Alligator">Alligator</option>
</select>

It is mandatory that you end all <option> with the closing </option> a nd that you include the value="<value>". It is important that you have the square brackets [] placed after the field name so that the script knows that there may be multiple values for that field name. We place this HTML in our web page and we get this.