Webbserverprogrammering 1

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

login.php

8 lines UTF-8 Windows (CRLF)
<h3>Logga in!</h3>
<?php
if (isset($_POST['pw']) && $_POST['pw'] != "per") echo "<p>Fel lösenord!</p>";
?>
<form action="" method="post">
 <input type="text" name="pw" value="per" />
 <button type="submit">Logga in</button>
</form>