I'm new in PHP and I'm getting this error
"Notice: Undefined index:...on line 58"
I have used similar method to write PHP code on my previous HTML elements e.g. radio button, input form and it run smoothly, but why it doesn't work on select option
<?php
include "connection.php";
if(isset($_POST['submit'])) {
$submit = mysqli_query($conn, "INSERT INTO tb_registration VALUES
( '".$_POST['FULLNAME']."',
'".$_POST['EDUCATION']."',
'".$_POST['ACTIVITY']."',
NULL )");
}
?>
<div>
<label>FULLNAME</label>
<input type="text" name="FULLNAME" />
</div>
<div>
<input type="radio" name="EDUCATION" value="EDUCATION">
<label>Bachelor</label>
</div>
<div>
<input type="radio" name="EDUCATION" value="EDUCATION">
<label>Master</label>
</div>
<div>
<select name="ACTIVITY">
<option value="A1">Dancing</option>
<option value="A2">Swimming</option>
</select>
</div>
i expect error line does not appear anymore.