I'm using this code for my questionnaire, how can I prevent them from inserting their answers/post? If they did not yet clicked all the radio buttons, that is given within the system which is the questions? And how to add an error message besides the question?

if(isset($_POST['question']))
{
$AddQuery = "INSERT INTO tblevaluate (evaluateid,professorid,professorname,studentid,course,section,subjectid,subjectname) VALUES ('','$server_professorid','$server_name',' $username','$course','$section','$server_subjectid','$server_subject')";
mysql_query($AddQuery, $connect);
$id = mysql_insert_id();
foreach($_POST['question'] as $questionId => $answer)
{
$AddQuery = "INSERT INTO tblanswer (answervalue,evaluateid,professorid,professorname,studentid,course,section,subjectid,subjectname) VALUES ($answer,$id,$server_professorid,'$server_name',$username,'$course','$section',$server_subjectid,'$server_subject')";
mysql_query($AddQuery, $connect);
header('Location: evaluate.php');
}
}
while($row = mysql_fetch_array($result))
{
echo "<br>";
echo "<strong>" . $row["questionno"] . ".</strong> " . $row["question"] . "";
echo "<br>";
echo "<input type = radio name = 'question[". $row ["questionid"] . "]' value = '5'/><label>5</label>";
echo "<input type = radio name = 'question[". $row ["questionid"] . "]' value = '4'/><label>4</label>";
echo "<input type = radio name = 'question[". $row ["questionid"] . "]' value = '3'/><label>3</label>";
echo "<input type = radio name = 'question[". $row ["questionid"] . "]' value = '2'/><label>2</label>";
echo "<input type = radio name = 'question[". $row ["questionid"] . "]' value = '1'/><label>1</label>";
echo "<br>";
echo "<hr size = 5 color = black noshade >";
}