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 check box list?

When adding a check box list to your web page form, it is important to make sure that each field has the same field name, along with the square brackets [] appended to the end of the name. Let's create a list of music genres that the user can select. Let's name the check box fields Music Genres[].

<input type="checkbox" name="Music Genres[]" value="Country"> Country
<input type="checkbox" name="Music Genres[]" value="Rap"> Rap
<input type="checkbox" name="Music Genres[]" value="Rock"> Rock
<input type="checkbox" name="Music Genres[]" value="Slow Jams"> Slow Jams

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.

Country Rap Rock Slow Jams