-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathregistration.php
132 lines (111 loc) · 4.05 KB
/
registration.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<style>
td>span {
color: red;
font-weight: 600;
}
td {
padding: 7px 0;
}
.message-btn {
color: aliceblue;
font-weight: bold;
display: inline-block;
width: 130px;
padding: 10px;
border-radius: 6px;
}
.succuess {
background-color: green;
}
.failed {
background-color: red;
}
</style>
<div id="registration">
<?php require_once "php-codes/registration-validation.php" ?>
<form action="" method="post" onsubmit="return regValidation()">
<h2>Welcome to Registration</h2>
<table>
<tr>
<td>Full Name: </td>
<td>
<input type="text" value="<?php echo $fullname; ?>" name="fullname" id="fullname"><?php echo $err_fullname; ?>
<span id="erName"></span>
</td>
</tr>
<tr>
<td>Username</td>
<td>
<p id="duplicate-username"></p>
<input type="text" onfocusout="checkDuplicateUser(this)" value="<?php echo $username; ?>" name="username" id="username"><?php echo $err_username; ?>
<span id="erUsername"></span>
</td>
</tr>
<tr>
<td>
I want to
<span id="err_Type"></span>
</td>
<td>
<input type="radio" name="type" id="user" value="1">(User) Search a Planner <br>
<input type="radio" name="type" id="planner" value="2">(Planner) Plan for People
</td>
</tr>
<tr>
<td>Password: </td>
<td>
<input type="text" value="<?php echo $password; ?>" name="password" id="password"> <?php echo $err_password; ?>
<span id="erPassword"></span>
</td>
</tr>
<tr>
<td>Confirm Password</td>
<td>
<input type="text" value="<?php echo $cfpassword; ?>" name="cfpassword" id="cfpassword"> <?php echo $err_cfpassword; ?>
<span id="ercfpassword"></span>
</td>
</tr>
<tr>
<td>Gender:
<span id="err_gender"></span>
<?php echo $err_gender; ?>
</td>
<td>
<input type="radio" name="gender" id="male_gender" value="1">Male
<input type="radio" name="gender" id="female_gender" value="2">Female
<input type="radio" name="gender" id="others_gender" value="3">Others
</td>
</tr>
<tr>
<td>Email: </td>
<td>
<input type="text" value="<?php echo $email; ?>" name="email" id="email"><?php echo $err_email; ?>
<span id="erEmail"></span>
</td>
</tr>
<tr>
<td>Contact Number: </td>
<td>
<input type="number" value="<?php echo $phoneNumber; ?>" name="contactNumber" id="contact"><?php echo $err_phoneNumber; ?>
<span id="erContact"></span>
</td>
</tr>
<tr>
<td>Address: </td>
<td>
<textarea name="address" id="address" cols="30" rows="10" placeholder="Write Your Local Address (Maximum 200 Charcters)"><?php echo $address; ?></textarea>
<?php echo $err_address; ?>
<span id="erAddress"></span>
</td>
</tr>
<tr>
<td><input type="reset" value="Clear" name="" id=""></td>
<td><input type="submit" id="" name="register" value="Register"></td>
</tr>
</table>
</form>
<script>
</script>
<script src="js/common-function.js"></script>
<script src="js/reg-js-validation.js"></script>
</div>