View sourcecode

The following files exists in this folder. Click to view.

index.php

20 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$mess 
= isset($_GET["mess"]) ? "<p style='color:red;'>".htmlspecialchars($_GET["mess"])."</p>" "";
?>
<!doctype html>
<html lang="sv">
<head><meta charset="utf-8"><title>Inloggning</title></head>
<body>
  <h1>Inloggning</h1>
  <?php echo $mess?>

  <form method="post" action="login.php">
    <label>Användarnamn</label>
    <input type="text" name="username" required>
    <label>Lösenord</label>
    <input type="password" name="password" required>
    <button type="submit">Logga in</button>
  </form>
</body>
</html>