To get more than one value from checkbox
- You need to change the name of checkboxes to an array like this
<input type="checkbox" name="Choice[]" />
- while reading the post value of check box read like this
$_POST['Choice'][0],$_POST['Choice'][1],...
Example
<input type="checkbox" name="Choice[]" value=" Checkbox 1"/> Checkbox 1<br>
<input type="checkbox" name="Choice[]" value=" Checkbox 2"/> Checkbox 2<br>
<input type="checkbox" name="Choice[]" value=" Checkbox 3"/> Checkbox 3<br>
If you had checked only checkbox 1 and 3 , then you can get values like this
$_POST['Choice'][0]
=> has the value of first checkbox that has been checked.
so $_POST['Choice'][0]
will have value of Checkbox 1
$_POST['Choice'][1]
=> has the value of second checkbox that has been checked.
so $_POST['Choice'][1]
will have value of Checkbox 3