-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
86 lines (77 loc) · 3.82 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
83
84
85
86
<?php
include('includes/loader.php');
include('tpl/head.php');
include('tpl/header.php');
$users = get_users();
// Note: You don't need this page on your work, its just a demo
?>
<div class="container">
<div class="row login">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Register</h3>
</div>
<div class="panel-body">
<?php
if(@$success){
?>
<div class="alert alert-success">
<strong>Success!</strong> <?php echo $success; ?>
</div>
<?php
}
?>
<?php
if(@$error){
?>
<div class="alert alert-danger">
<strong>Sorry!</strong><?php echo $error; ?>
</div>
<?php
}
?>
<form id="signupform" action="register.php" role="form" method="POST">
<fieldset>
<div class="form-group">
<label>
Username
</label>
<input class="form-control" placeholder="Username" name="username" type="text" required="required" autofocus>
</div>
<div class="form-group">
<label>
Email
</label>
<input class="form-control" placeholder="Email" name="email" required type="email" autofocus>
</div>
<div class="form-group">
<label>
Password
</label>
<input class="form-control" placeholder="Password" name="password" type="password" value="">
</div>
<div class="form-group">
<label>
Confrm - Password
</label>
<input class="form-control" placeholder="Password" name="password_confirmation" type="password" value="">
</div>
<div class="checkbox">
<label>
<input name="remember" type="checkbox" value="Remember Me">Remember Me
</label>
</div>
<!-- Change this to a button or input when using this as a form -->
<button name="register" type="submit" class="btn btn-success btn-block">Register</button>
<a href="index.php" class="btn btn-success btn-block">Login</a>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
include('tpl/footer.php');
?>