PHP Classes

File: answer.php

Recommend this page to a friend!
  Classes of Martijn Waeyenbergh   PHP Quiz Application   answer.php   Download  
File: answer.php
Role: Example script
Content type: text/plain
Description: answer
Class: PHP Quiz Application
Show quizzes using questions read from an INI file
Author: By
Last change:
Date: 6 months ago
Size: 409 bytes
 

Contents

Class file image Download
<?php
   
require_once("class.quiz.php");
   
$quiz = new quiz();

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