Show sourcecode
The following files exists in this folder. Click to view.
webb_srv1/exercises/form-quiz-3/
index.php
login.php
main.php
question1.php
question2.php
question3.php
svar.php
index.php
32 lines UTF-8 Windows (CRLF)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Frågesport</title>
<style>
.correct {
background: green;
}
.wrong {
background: red;
}
</style>
</head>
<body>
<h1>Frågesport</h1>
<?php
if (!isset($_POST['pw'])) {
include('login.php');
}
else {
if ($_POST['pw'] == "per") {
include('main.php');
}
else {
include('login.php');
}
}
?>
</body>
</html>