webserver-m0/www/public/evaluate.php

24 lines
322 B
PHP
Raw Normal View History

2023-08-23 06:56:08 +00:00
<!doctype html>
<html>
<head lang="sv"></head>
<body>
<h1>Matematiktest</h1>
<h2>Resultat</h2>
<?php
$ans1 = $_GET['q1'];
$ans2 = $_GET['q2'];
$points = 0;
if ($ans1 == 9)
$points++;
if ($ans2 == 15)
$points++;
echo "<p>Du fick $points av 2 möjliga</p>";
?>
</body>
</html>