PHP Classes

File: answer.php

Recommend this page to a friend!
  Classes of Martijn Waeyenbergh   PHP Quiz Questions and Answers   answer.php   Download  
File: answer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Quiz Questions and Answers
Present quizzes using INI configuration files
Author: By
Last change:
Date: 2 years ago
Size: 531 bytes
 

Contents

Class file image Download
<?php
   
require_once("class.quiz.php");
    require_once(
"class.quizBoard.php");

   
session_start();

   
$quizBoard = new quizBoard();
   
$quiz = new quiz();

?>
<!DOCTYPE html>
<html>
<head>
    <title>Kwis : <?php echo $quizBoard->beautify($_SESSION['quiz']) ?></title>
    <link rel="stylesheet" type="text/css" href="./css/style.css">
</head>
<body>
    <div class='wrapper'>
        <h1><?= $quizBoard->beautify($_SESSION['quiz']) ?></h1>
        <hr>
        <?php
           
echo $quiz->checkAnswer($_GET['a']);
       
?>
</div>
</body>
</html>