-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacts.php
45 lines (45 loc) · 2.06 KB
/
contacts.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Contact</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/crud.css">
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script>
$(function(){
$("#header").load("./included/header.html");
$("#footer").load("./included/footer.html");
});
</script>
<div id="header"></div>
<div id="footer"></div>
</head>
<body>
<div class="container">
<form action="./create.php" method="post">
<h4 class = "display-4 text-center">Account toevoegen</h4><hr><br>
<?php if (isset($_GET['error'])) { ?>
<div class="alert alert-danger" role="alert">
<?php echo $_GET['error']; ?>
</div>
<?php } ?>
<div class="form-group">
<label for="username">Gebruikersnaam</label>
<input type="name" class="form-control" id="username" name="username" value="<?php if (isset($_GET['username'])) echo ($_GET['username']); ?>" placeholder="Voer gebruikersnaam in">
</div>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" name="email" value="<?php if (isset($_GET['email'])) echo ($_GET['email']); ?>" placeholder="Voer email in">
</div>
<button type="submit" name="create" class="btn btn-primary">Toevoegen</button>
<a href="read.php" class="link-primary"> Bekijk</a>
</form>
</div
</body>
</html>