Hi guys, i have being creating this CBT application with php and mysql. So far i can output the questions from database. How do mark the exam and output the score when the user hit the submit button.I wrote a page to process the submitted radio buttons(i.e selected answers by users).
Computer based test(CBT)
3
Hi guys, i have being creating this CBT application with php and mysql. So far i can output the questions from database.
How do mark the exam and output the score when the user hit the submit button.I wrote a page to process the submitted radio buttons(i.e selected answers by users).
<?php
session_start();
$who=$_SESSION['user'];
require'cbt.php';
echo $_SESSION['user'];
echo'<br/>';
echo'<i>You have answered a total of <strong>'. count($_POST).'</strong> questions</i>';
echo'<br/>';
?>
How do i write the php script that will check the submitted answers against the correct answers from the database.
How do mark the exam and output the score when the user hit the submit button.I wrote a page to process the submitted radio buttons(i.e selected answers by users).
<?php
session_start();
$who=$_SESSION['user'];
require'cbt.php';
echo $_SESSION['user'];
echo'<br/>';
echo'<i>You have answered a total of <strong>'. count($_POST).'</strong> questions</i>';
echo'<br/>';
?>
How do i write the php script that will check the submitted answers against the correct answers from the database.
- Ankan333
- Basant Kumar
Next Topics on Trending Feed
-
3