-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdtsreg.php
295 lines (145 loc) · 4.6 KB
/
mdtsreg.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
<?php
include("controller.php");
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Carsikho | Sign Up | MDTS Registration</title>
<?php
include("carsikho_view.php");
?>
<!-- AJax Start -->
<script type="text/javascript">
var httpObject;
function getHttpObject()
{
if(window.XMLHttpRequest)
{
httpObject=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
httpObject=new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
alert("Your Browser Does not support AJAX..Please use diff Browser");
}
}
function statename(cityid)
{
//alert(cityid);
getHttpObject();
if(httpObject!=null)
{
httpObject.open("GET","controller.php?cityid="+cityid,true);
httpObject.send(null);
httpObject.onreadystatechange=function()
{
if(httpObject.readyState==4)
{
document.getElementById('state').innerHTML=httpObject.responseText;
}
}
}
}
</script>
<!--/ajax End-->
</head>
<body>
<?php
include("carsikho_head.php");
?>
<div class="error_blog">
<?php
if(isset($_SESSION['error']))
{
?>
<div class="alert alert-danger">
<center><h3><?php echo $_SESSION['error']; ?></h3></center>
</div>
<?php
unset($_SESSION['error']);
}
?>
</div>
<!-- MDTS Registration Form -->
<div class="Registration" style="overflow:auto;margin:20px;">
<h2 style="color:blue;margin-bottom:20px;">Motor Driving Training School Registration Form</h2>
<p style="color:red">*Please Enter Valid Details Only</p>
<p style="color:red;margin-bottom:20px;">*Valid Motor Driving Training School will got Confirmation Message,Username and Password by Carsikho within 24 hours</p>
<form name="mdtsreg" method="post" enctype="multipart/form-data">
<table class="table table-condensed">
<tr>
<th>Motor Driving Training School Name</th>
<td><input type="text" name="txtName" placeholder="Motor Driving Training School Name" size="83" pattern="^[a-zA-Z0-9 _@]+$" required></td>
</tr>
<tr>
<th>Contact Number</th>
<td><input type="text" name="txtContact" placeholder="Motor Driving Trainig Contact Number" size="83" pattern="^[0-9]{10}$" required></td>
</tr>
<tr>
<th>Email Id</th>
<td><input type="text" name="txtEmail" placeholder="Motor Driving Training School Email" size="83" pattern="^[a-zA-Z0-9 ._@]+$" required></td>
</tr>
<tr>
<th>Motor Driving School Headoffice Address</th>
<td><textarea name="txtAdd" cols="85" rows="5" Placeholder="Motor Driving Training School Address" pattern="^[a-zA-Z0-9 _@]+$" required></textarea></td>
</tr>
<tr>
<th>Password</th>
<td><input type="password" name="txtPass" placeholder="Motor Driving Training School Password" size="83" pattern="^[a-zA-Z0-9 _@]{6,12}+$" required></td>
</tr>
<tr>
<th>Select City</th>
<td >
<select onChange="statename(this.value)" name="city">
<option value="1">Select City</option>
<!--city filling-->
<?php
while($fe=$city->fetch_object())
{
?>
<option value="<?php echo $fe->id; ?>"><?php echo $fe->cityname; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td>State</td>
<td id="state" name="txtState" size="83" placeholder="Select Your City"></td>
</tr>
<tr>
<th>Motor Driving Training School's License No/Pic</th>
<td><input type="file" name="mdtslic" required></td>
</tr>
<tr>
<th>Upload Motor Driving Training School's Profile Pic</th>
<td><input type="file" name="profilepic" required></td>
</tr>
<tr>
<th>Captcha Code</th>
<td>
<input type="text" placeholder="Enter captcha code" name="txtcaptcha" required>--
<img src="captcha_code.php">
</td>
</tr>
<tr>
<td></td>
<td><input type="Submit" value="Register" name="register">
<input type="Reset" value="Reset" name="Reset"></td>
</tr>
</table>
</form>
</div>
<!-- /MDTS Registration Form-->
<!--- /footer-btm ---->
<?php
include("carsikho_footer.php");
?>
<!--- /copy-right ---->
</div>
</body>
</html>