i am coading huge html form which store data in database through php but my checkbox code is not working
////check box code////
<li>Mother </li><table><tr><td><input type="checkbox" name="mdeceased" value="deceased">deceased</td>
<td><input type="checkbox" name="malive" value="alive">alive</td></tr>
<tr><td><input type="checkbox" name="mretired" value="retired">retired</td>
<td><input type="checkbox" name="minservice" value="inservice">in service</td>
<td><input type="checkbox" name="mbusiness" value="business">business</td></tr>
///php code for checkbox for making variable and then using in the query ///
$mysql = new mysqli('localhost','root','ramsha','scholarships_system') or die ('you\'re dead');
if(!empty($_POST['submit'])) {
$mdeceased =$_POST['mdeceased'];
$malive = $_POST['malive'];
$mretired = $_POST['mretired'];
$minservice = $_POST['minservice'];
$mbusiness = $_POST['mbusiness'];
$query = "INSERT INTO student _details VALUES('$mdeceased','$malive','$mretired','$minservice','$mbusiness')";
if($updateDb = $mysql->query($query) or die($mysql->error)) {
echo "Congrats!";
}
///error is coming /// Notice: Undefined index: mdeceased in C:\wamp\www\student form filling\htmlform.php on line 91
only $alive is accepting what to do