-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvolunteerreg.php
214 lines (159 loc) · 5.47 KB
/
volunteerreg.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html>
<head>
<?php
require("Php/mysql_functions.php");
$data=array();
loadFromMySQL("select * from division");?>
<title>Volunteer registation</title>
<link rel="stylesheet" type="text/css" href="css/vstyle.css">
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700%7CPT+Serif:400,700,400italic' rel='stylesheet'>
<link href="https://fonts.googleapis.com/css?family=Montserrat|Open+Sans" rel="stylesheet">
</head>
<body>
<script src="Javascript/volunteer.js"></script>
<script src="Javascript/load.js"></script>
<div class="menu">
<div class="leftmenu">
<h4> Donation Box </h4>
</div>
<div class="rightmenu">
<ul>
<li ><a href="homepage.html"> HOME </a></li>
<li><a href="donatefood.html"> DONATE</a></li>
<li><a href="joinus.html">JOIN US</a></li>
<li><a href="about.html">ABOUT</a></li>
<li><a href="contact.html"> CONTACT </a></li>
<li><a href="login.html"> LOGIN </a></li>
</ul>
</div>
</div>
<form method="post" action="Php/volunteerregvalidation.php" name="fm">
<br>
<br>
<br>
<table class="center">
<tr>
<td>
<p>First Name</p>
<input type="text" name="fname" placeholder="Enter first Name">
<p id="fnameErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Last Name</p>
<input type="text" name="lname" placeholder="Enter Last Name">
<p id="lnameErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Email</p>
<input type="text" name="email" placeholder="Enter Email">
<p id="emailErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Institution</p>
<input type="text" name="institution" placeholder="Enter Institution">
<p id="institutionErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Division</p>
<select id="divisionList" name="division" onchange="load_District(this);"><?php
foreach($data as $r){?>
<option value="<?php echo $r["div_id"];?>">
<?php echo $r["div_name"];?>
</option><?php
}?>
</select>
</td>
</tr>
<tr>
<td>
<p>District</p>
<select id="districtList" name="districtList" onchange="load_Thana(this);">
</select>
</td>
</tr>
<tr>
<td>
<p>Location</p>
<select id="thanaList" name="thanaList" >
</select>
</td>
</tr>
<tr>
<td>
<p>Date Of Birth</p>
<input type="date" name="bday">
<p id="bdayErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Gender</p><br>
<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female
<input type="radio" name="gender" value="other"> Other
<p id="genderErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<br>
<p>Time</p>
<select name="time">
<option value="first">9 am to 1 pm</option>
<option value="second">1 pm to 5 pm</option>
<option value="third">5 pm to 9 pm</option>
</select>
</td>
</tr>
<tr>
<td>
<p>Phone</p>
<input type="text" name="phone" placeholder="Enter Phone">
<p id="phoneErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Password</p>
<input type="password" name="pass" placeholder="Enter Password">
<p id="passErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
<p>Confirm Password</p>
<input type="password" name="cpass" placeholder="Enter Confirm Password">
<p id="cpassErr" style="color:red;font-size:13px"></p>
</td>
</tr>
<tr>
<td>
</br>
<p style="text-align:center">
<input type="submit" name="submit" onclick="return volunteer_validation();" value="Submit">
</p>
</td>
</tr>
<tr>
<td>
</br>
<a href="login.html">Already have Account</a>
<br>
<br>
<br>
<br>
</td>
</tr>
</table>
</form>
</body>
</html>