View sourcecode

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

index.php

32 lines UTF-8 Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="sv">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style_p01.css">
    <title>Bankapplikation</title>
  </head>
  <body>
        <div class = "container">
        <h1>Bankapplikationen</h1>
        <?php if (isset($_GET['error']) && $_GET['error'] == 1): ?>
        <p style="color:red;">Fel användarnamn eller lösenord</p>
        <?php endif; ?>

        <form method="post" action="login.php">
        <p>Användarnamn<br>
          <input type='text' name='username' required>
        </p>
        <p>Lösenord<br>
            <input type='password' name='password' required>
        </p>
        <p><input type="checkbox"
      name="keepLoggedIn"> Håll mig inloggad</p>
        <p><input type="submit" value="Logga in">
      </p>
      </form>
      <p><a href="register.php">Skapa nytt konto</a></p>
    </div>
  </body>
</html>