View sourcecode

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

index.php

50 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php 
$mess 
= isset($_GET['mess']) ? "<p class='has-text-danger'>".$_GET['mess']."</p>" "";
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Inloggningssida</title>
    <link rel="stylesheet" href="bulma.css">
</head>
<body>
<main class="section">
    <div class="container box">
        <h1 class="title has-text-centered">Inloggningssida</h1>
        <?php echo $mess?>

        <form method="post" action="login.php">
            <div class="field">
                <label class="label">Användarnamn:</label>
                <div class="control">
                    <input class="input" type="text" name="username" required placeholder="Skriv ditt användarnamn...">
                </div>
            </div>

            <div class="field">
                <label class="label">Lösenord:</label>
                <div class="control">
                    <input class="input" type="password" name="password" required placeholder="Skriv ditt lösenord...">
                </div>
            </div>

            <div class="field">
                <label class="checkbox">
                    <input type="checkbox" name="remember"> Håll mig inloggad
                </label>
            </div>

            <div class="field">
                <div class="control">
                    <button class="button is-primary" type="submit">Logga in</button>
                </div>
            </div>
        </form>
    </div>
</main>
</body>
</html>