View sourcecode

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

make_account.php

46 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
<?php
if(isset($_GET["mess"])){
        switch(
$_GET["mess"]){
            case 
"exists":
                echo 
"<br><mark style=\"background-color: rgba(255, 130, 130, 1); border: 1px solid rgba(255, 0, 0, 1);\">Du har redan ett konto med detta namn</mark>";
                break;
        }
    }
else{
    echo
"<br>";
}
?>

<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Skapa nytt bankkonto</title>
    <link rel="stylesheet" href="/spectre/spectre-master/dist/spectre.css">
</head>
<body style="text-align:center;">
    <h1>Skapa nytt konto</h1>
    <h5>&copySöderbank</h5><br>
    <form method="post" action="does_make_account.php">
        <p>
            <label for="kNamn">Kontonamn</label>
            <input type="text" if="kNamn" name="kNamn" required>
        </p>
        <p>    
            <label for="kTyp">Kontotyp</label>
            <select id="kTyp" name="kTyp">
                <option value="Personkonto">Personkonto</option>
                <option value="Sparkonto">Sparkonto</option>
                <option value="ISK">ISK-konto</option>
            </select>
        </p>
        <p>
            <input type="submit" value="Skapa konto" name="submit" class="btn btn-primary">
        </p>
        <p>
            <a href="../user.php" class="btn">Tillbaka</a>
        </p>
    </form>
</body>
</html>