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.
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.