webserver-m0/www/public/evaluate.php
2023-08-23 08:56:08 +02:00

24 lines
322 B
PHP

<!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>