The Daily Insight.

Connected.Informed.Engaged.

updates

,How can I get multiple checkbox values in PHP?,To get all the values from the checked checkboxes, check these out | it’ll create an associative array of values where the key is the checkbox’s name and the values are the selected values.

By Matthew Underwood

you need to add the square brackets ( [] ) after the name of the checkboxes. When PHP sees the square brackets ( [] ) in the field name

it’ll create an associative array of values where the key is the checkbox’s name and the values are the selected values.