-
Notifications
You must be signed in to change notification settings - Fork 1
/
signup.php
93 lines (90 loc) · 5.67 KB
/
signup.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
87
88
89
90
91
92
93
<?php $title = "Sign Up" ?>
<?php include "includes/components/header.php" ?>
<?php include "includes/components/navbar.php" ?>
<section class="pt-5 pb-5 mt-0 align-items-center d-flex bg-dark" style="min-height: 100vh; background-size: cover; background-repeat: no-repeat; background-image: url('images/resources/log-in.png');">
<div class="container-fluid">
<div class="row justify-content-center align-items-center d-flex-row text-center h-100">
<div class="col-12 col-md-4 col-lg- h-50 ">
<div class="card shadow">
<div class="card-body mx-auto">
<h4 class="card-title mt-3 text-center">Create Account</h4>
<hr>
<form action="signup.php" method="POST" enctype="multipart/form-data">
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-user"></i> </span>
</div>
<input name="first_name" class="form-control" placeholder="First name" type="text" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-user"></i> </span>
</div>
<input name="last_name" class="form-control" placeholder="Last name" type="text" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-user"></i> </span>
</div>
<input name="username" class="form-control" placeholder="Username" type="text" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-user"></i> </span>
</div>
<select name="role" required>
<option selected disabled>Registering as</option>
<option value="2">Counselor</option>
<option value="3">User</option>
</select>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-envelope"></i> </span>
</div>
<input name="email" class="form-control" placeholder="Email address" type="email" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-phone"></i> </span>
</div>
<input name="phone" class="form-control" placeholder="Phone number" type="text" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-lock"></i> </span>
</div>
<input name="password" class="form-control" placeholder="Create password" type="password" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-lock"></i> </span>
</div>
<input name="repeat_password" class="form-control" placeholder="Repeat password" type="password" required>
</div>
<div class="form-group input-group">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fa fa-image"></i> </span>
</div>
<input name="avatar" class="form-control" placeholder="Choose File" type="file">
</div>
<br>
<div class="form-group">
<button style="background-color: #43DBAD;border:none;border-radius:30px;font-size:1.1rem;padding:10px;" name="submit" type="submit" class="btn btn-primary btn-block"> <strong>Create Account</strong> </button>
</div>
<br>
<p class="text-center">Have an account?
<br>
<a href="login.php">Log In</a>
</p>
</form>
<?php
signUp();
?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php include "includes/components/footer.php" ?>