-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
51 lines (47 loc) · 1.31 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
<?php
include 'inc/header.php';
include 'lib/User.php';
?>
<?php
$user = new User();
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['register'])) {
$usrRegi = $user->userRegistration($_POST);
}
?>
<div class="panel panel-default">
<div class="panel-heading">
<h2>User Registation</h2>
</div>
<div class="panel-body">
<div style="max-width:600px; margin: 0 auto">
<?php
if (isset($usrRegi)) {
echo $usrRegi;
}
?>
<form action="" method="POST">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" class="form-control" >
</div>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" class="form-control" >
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="text" id="email" name="email" class="form-control" >
</div>
<div class="form-group">
<label for="password">Password </label>
<input type="password" id="password" name="password" class="form-control" >
</div>
<button type="submit" name="register"
class="btn btn-success">Submit</button>
</form>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>