Location: PHPKode > projects > Teacher Evaluation based on phpsurveyor > DONT USE/mod_evaluation/surveytaken.php
<?php 
//call in the form of surveytaken.php?sid=SID
require "header.php"; 

//$sid is passed as URL parameter
$sid= $HTTP_COOKIE_VARS["sid"];


if(!is_numeric($sid)) {
	echo "exit sid not numeric"; 
	exit;
}

$querystring="UPDATE pretoken SET active=0 WHERE sid=". 
	$sid . " AND idstudent=" . $myStudent->databasefields['idstudent'] .";";
	
mysql_query($querystring);
echo '<h3 align="center"><a href="index.php">weiter...</a><br></h3>';
if (!mysql_affected_rows()==1) { 
	errorexit("sid=$sid pretoken table cannot be updated |surveytaken.php | maybe it has already been updated and user pressed refresh button.");
}

//get tokentable entry for student, with SID
require "footer.php";?>
Return current item: Teacher Evaluation based on phpsurveyor