-
Notifications
You must be signed in to change notification settings - Fork 2
/
register.php
82 lines (72 loc) · 3.61 KB
/
register.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<title>Register</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="bootstrap/css/style.css">
</head>
<body>
<section class="ftco-section">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6 text-center mb-5">
<h2 class="heading-section">Register</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-7 col-lg-5">
<div class="login-wrap p-4 p-md-5">
<div class="icon d-flex align-items-center justify-content-center">
<span class="fa fa-user-o"></span>
</div>
<h3 class="text-center mb-4">Sign Up</h3>
<form action="proses/adduser.php" method="POST" class="login-form">
<div class="form-group">
<input type="hidden" name="role" class="form-control rounded-left" value="user"
required>
<input type="text" name="username" class="form-control rounded-left"
placeholder="Username" required>
</div>
<div class="form-group d-flex">
<input type="email" name="email" class="form-control rounded-left" placeholder="Email"
required>
</div>
<div class="form-group d-flex">
<input type="password" name="password" class="form-control rounded-left"
placeholder="Password" required>
</div>
<div class="form-group d-flex">
<input type="password" name="Cpassword" class="form-control rounded-left"
placeholder="Confirm Password" required>
</div>
<?php
if (!empty($_SESSION['message'])) {
echo '<div class="alert alert-warning text-center" role="alert">' . $_SESSION['message'] . '</div>';
unset($_SESSION['message']);
}
?>
<div class="form-group">
<button type="submit"
class="form-control btn btn-primary rounded submit px-3">Submit</button>
</div>
<div class="row justify-content-center">
<span>Already an account? <a href="login.php" class="text-center">Login</a></span>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<script src="bootstrap/js/jquery.min.js"></script>
<script src="bootstrap/js/popper.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/js/main.js"></script>
</body>
</html>