-
Notifications
You must be signed in to change notification settings - Fork 4
/
login_form.php
executable file
·45 lines (34 loc) · 992 Bytes
/
login_form.php
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
<?php
session_start();
require 'head.php';
require 'partials/database.php';
require 'nav.php';
?>
<!--LOGIN FORM-->
<div class="container mt-5">
<?php
if(isset($_GET["register_success"])){
echo $_GET["register_success"];
}
if(isset($_GET["wrong_password"])){
echo "Du angav fel lösenord. Prova att logga in igen:";
}
?>
<h1>Logga In</h1>
<hr>
<form action="partials/login.php" method="POST">
<div class="form-group">
<label for="username"> Username </label>
<input id="username" type="text" name="username" class="form-control">
</div>
<div class="form-group">
<label for="password"> Password </label>
<input id="password" type="password" name="password" class="form-control">
</div>
<div class="form-group">
<input type="submit" value="Logga In" class="btn button-green">
</div>
</form>
</div>
<!--END OF LOGIN FORM-->
<?php require 'footer.php'; ?>