Επεξεργασία αποτελέσματος
1.
if (isset($_POST['end']))
2.
{
3.
session_write_close();
4.
$dbconn = null;
5.
header("location: stestee.php?tid=".$_SESSION['test']."&msg=1");
6.
exit();
7.
}
8.
if (isset($_POST['add']))
9.
{
10.
$_SESSION['answer'] .= $_POST['question_id'].'>'.$_POST['choice'].'|';
11.
}
12.
if (isset($_POST['skip']))
13.
{
14.
$_SESSION['skip_ids'] .= $_POST['question_id'].',';
15.
}
$_SESSION['rem_questions'] = str_replace($_POST['question_id'].",","",$_SESSION['rem_questions']);
$_SESSION['page'] = $_SESSION['page'] + 1;
$_SESSION['total_question_loop'] = $_SESSION['total_questions'];
14