-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
59 lines (43 loc) · 1.63 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
<?php include ("class/User.php");?>
<?php include ("includes/header.php"); ?>
<?php include ("includes/navbar.php");?>
<?php
$user = new User();
if(isset($_POST['register-btn'])){
$userregister = $user->setRegister($_POST);
}
?>
<div class="container mt-4">
<form action="" method="POST"
style="width: 650px;margin:0 auto;background-color: #6c757d;padding: 68px;color: #fff;">
<?php
if(isset($userregister)){
?>
<div class="alert alert-danger" role="alert">
<?php echo $userregister;?>
</div>
<?php
}?>
<h3>User Registration</h3>
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" class="form-control" placeholder="Name" id="name">
<small class="text-danger"></small>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" name="email" class="form-control" placeholder="Email Id" id="email">
<small class="text-danger"></small>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" placeholder="Password" id="password">
</div>
<div class="form-group">
<label for="status">Status</label>
<input type="text" name="status" class="form-control" placeholder="Status" id="status">
</div>
<button type="submit" name="register-btn" class="btn btn-primary">Register</button>
</form>
</div>
<?php include ("includes/footer.php");?>