How to get multiple checkbox value in PHP - editor php - Phptpoint.com

PHP

Get Multiple checkbox value in PHP

How to get multiple checkbox value in PHP

Check box is a small box on a form into which a tick or other mark is entered as the response to a question.
When we need more than one choice for single question then we use check box.

As we already know that when we fetch the value of any of the field (text field, dropdown, checkbox etc) of the form then we need to have the name of the field i.e. we fetch the value of the field by it’s name and as we are fetching more than one value through check box so we need to have the name of that field an array(use to store multiple values in a single name), so that we can store all value fetched from check boxes in the single name.

Here is the example to fetch the values from multiple checkbox:

PHP Script

HTML Form to define multiple check-box