24 lines
322 B
PHP
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>
|