10
10
//Check if the sent login name is the same as the one stored in the session
11
11
if($_POST['loginName']==$_SESSION['loginName'] && $_POST['courseName']==$_SESSION['courseName'] && $_POST['quizNr']==$_SESSION['quizNr']) {
13
13
//Store answer and loginName+answer hash
14
14
function storeAnswer($loginName,$courseName,$courseOccasion,$quizNr,$qVarRr,$quizAnswer,$grade,$gradeComment,$ip,$userAgent,$pdo) {
15
15
$updateQuery="UPDATE AssignedQuizzes