WebServ/www/public/M1/05/result.php
2024-08-23 15:24:49 +02:00

24 lines
498 B
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Result</title>
</head>
<body>
<?php
$points = 0;
$q1 = $_POST['q1'];
$q2 = $_POST['q2'];
$q3 = $_POST['q3'];
$q4 = $_POST['q4'];
if($q1 == "A") $points++;
if($q2 == "B") $points++;
if($q3 == "C") $points++;
if($q4 == "D") $points++;
echo "<p>Questions got right = $points</p>"
?>
</body>
</html>