s in the group individually or via the name prop of . Using checkboxes is a good option when you want to give your visitors the option to choose several items from a group of choices. The checkbox field takes the format: The name attribute is the name of the field (for example, "newsletter"). Selecting multiple options vary in different operating systems and browsers: For windows: Hold down the control (ctrl) button to select multiple options. If you want to allow the user to check only one checkbox from a group of the checkboxes, it can be done easily using jQuery. The annoying thing is that a lot of the examples online show this same syntax even though it’s clearly wrong. 1. Adding square braces to the checkbox name creates an array of the selected values in the group: This can be retrieved in PHP with a simple loop: Simple! I thought I should post this correct solution in the hopes that it might help someone else wade through all of the wrong information out there. To get value of multiple checked checkboxes, name attribute in HTML input type=”checkbox” tag must be initialize with an array, to do this write [ ] at the end of it’s name attribute :