# HTML Multiple Choice

# Handling Multiple Choice Fields

If you want to handle multiple choice fields in your HTML form, you can use array by adding [ ] to your name attributes.

Sample form should look like this:

<form action="https://getform.io/f/{your-form-endpoint}" method="POST">
    <input type="email" name="email">
    // Multiple values handle
    <input type="checkbox" name="books[]" >
    <button type="submit">Send</button>
</form>

TIP

You should give the same name to both of your checkbox fields' name attributes. Otherwise, your checkbox values won't be submitted correctly.