View sourcecode

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

create_account.php

41 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
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Skapa konto</title>
    <link rel="stylesheet" href="/spectre/spectre-master/dist/spectre.css">
</head>
<body style="text-align: center;">
    <br>
    <?php
    
if(isset($_GET["mess"])){
        switch(
$_GET["mess"]){
            case 
"EXISTS":
                echo 
"<mark style=\"background-color: rgba(255, 130, 130, 1); border: 1px solid rgba(255, 0, 0, 1);\">Användranman upptaget, vänligen välj ett annat.</mark>";
                break;
        }
    }
    else{
        echo 
"<br>";
    }
    
?>
    <h1>Skapa konto</h1>
    <form method="post" action="accountant.php">
        <p>
        <label for="uName" class="form-label">Användarnamn</label>
        <input type="text" name="c_username" id="uName" required>
        </p>
        <p>
        <label for="pass" class="form-label">Lösenord</label>
        <input type="password" name="c_password" id="pass" required>
        <br>
        <input type="checkbox" onclick="passShow(pass)"> Visa Lösenord
        <p>
        <input type="submit" name="submit" value="Skapa konto" class="btn btn-primary">
        </p>
    </form>
    <p>Jag har visst ett konto, jag vill <a href="index.php">Logga in:</a></p>
    <script src="../passShow.js"></script>
</body>
</html>