-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
188 lines (166 loc) · 7.26 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
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
<!-- <?php
$val=$_GET['value'];
if($val==1){
?>
<h3>User already exists</h3
<?php
}
?> -->
<!DOCTYPE html>
<html>
<head>
<title> Registration </title>
<link rel="shortcut icon" href="images/favicon.png"></link>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="css/bootstrap.min.css" rel="stylesheet">
</link>
<link href="css/Default.css" rel="stylesheet">
</link>
<script type="text/javascript" src="js/jquery.js"></script>
<!-- <script>
$(document).ready(function()
{
$('.wrap').css();
});
</script> -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/man.js"></script>
</head>
<body>
<div class="wrap">
<!-- Header -->
<div class="header">
<div style="float:left;width:140px;">
<img src="images/log.png"/>
</div>
<div id="heading">
<a href="index.php">Railway Reservation</a>
</div>
</div>
<!-- Navigation bar -->
<div class="navbar navbar-inverse" >
<div class="navbar-inner">
<div class="container" >
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<a class="brand" href="index.php" ><i class="fa fa-home"></i> HOME</a>
<a class="brand" href="train.php" ><i class="fa fa-search"></i> FIND TRAIN</a>
<a class="brand" href="reservation.php"><i class="fa fa-train"></i> BOOK</a>
<a class="brand" href="profile.php"><i class="fa fa-id-card"></i> PROFILE</a>
<a class="brand" href="display.php"><i class="fa fa-book"></i> BOOKINGS</a>
<a class="brand" href="admin_login1.php"><i class="fa fa-user"></i> ADMIN</a>
<div class="container">
<label class="switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
</div>
</div>
</div>
</div>
<!-- registration form -->
<div align="center">
<div class="span12 well">
<div style="font-size:30px;"> Registration Form</div>
<br/>
<div class="table">
<form name="signup" method="post" action="register.php">
<table>
<tr>
<!-- <td style="border-top:0px;"> First Name <font color=red>* </font></td> -->
<td style="border-top:0px;">First Name <font color=red>* <input type="text" name="fname" class="input-block-level" placeholder="Enter the First name" pattern="[A-Za-z ]{1,50}" required><span id="fn"></span></td>
<!-- </tr>
<tr> -->
<!-- <td style="border-top:0px;"> Last Name <font color=red>* </font> </td> -->
<td style="border-top:0px;">Last Name <font color=red>* <input type="text" name="lname" class="input-block-level" placeholder="Enter the Last name" pattern="[A-Za-z ]{1,50}" required><span id="ln"></span></td>
<td style="border-top:0px;">Username <font color=red>* <input type="text" name="uname" class="input-block-level" placeholder="Enter the user name" required><span id="ln"></span></td>
</tr>
<tr>
<!-- </tr>
<tr> -->
<!-- <td style="border-top:0px;"> Email ID <font color=red>* </font> </td> -->
<td style="border-top:0px;">Email ID <font color=red>*</font> <input type="email" class="input-block-level" name="eid" placeholder="Enter the valid email id" required></td>
<!-- </tr>
<tr> -->
<!-- <td style="border-top:0px;"> Password <font color=red>* </font> </td> -->
<td style="border-top:0px;">Password <font color=red>* </font><input type="password" class="input-block-level" name="psd" placeholder="Enter the password" onblur="return check1()"> <span id="ps" required></span></td>
<!-- </tr>
<tr> -->
<!-- <td style="border-top:0px;"> Confirm Password <font color=red>* </font> </td> -->
<td style="border-top:0px;">Confirm Password <font color=red>*<input type="password" class="input-block-level" name="cpsd" placeholder="Re-type the password" onblur="return confirm1()" required> <span id="cps" ></span></td>
</tr>
<tr>
<!-- <td style="border-top:0px;"> Gender <font color=red>* </font> </td> -->
<td style="border-top:0px;">Gender <font color=red>* <select name="gnd">
<option value="male">MALE</option>
<option value="female">FEMALE</option>
</select>
</td>
<!-- </tr>
<tr> -->
<!-- <td style="border-top:0px;"> Date of Birth <font color=red>* </font></td> -->
<td style="border-top:0px;">Date of Birth <font color=red>* <input type="date" class="input-block-level input-medium" name="dob" max="<?php echo date('Y-m-d',time()-60*60*24*365*18);?>" value="<?php echo date('Y-m-d',time()-60*60*24*365*18);?>"> </td>
<td style="border-top:0px;"> Mobile No. +91<font color=red>*</font> <input type="number" class="input-block-level input-medium" name="mobile" pattern="[1-9][0-9]{9}" placeholder="xxxxxxxxxx" required> <span id="mn"></span></td>
</tr>
<tr>
<td style="border-top:0px;">Credit Card Number <font color=red>* <input type="number" class="input-block-level" name="card" pattern="[0-9]{16}" placeholder="xxxxxxxxxxxxxxxx" required> </td>
<td style="border-top:0px;"> Postal Address<font color=red>*</font> <input type="text" class="input-block-level" name="address" placeholder="Landmark, City, Pincode" required></td>
</tr>
<!-- <tr>
<td style="border-top:0px;"> Security Question <font color=red>* </font></td>
<td style="border-top:0px;">
<select name="ques">
<option value="What is your pets name ?">What is your pets name ?</option>
<option value="What was the name of your first school?">What was the name of your first school?</option>
<option value="What is your favorite hero?">What is your favorite hero?</option>
<option value="What is your favorite movie?">What is your favorite movie?</option>
</select>
</td>
</tr>
<tr>
<td style="border-top:0px;"> Your Answer <font color=red>* </font></td>
<td style="border-top:0px;"> <input type="text" name="ans" class="input-block-level" placeholder="Enter the your answer" onblur="return ans1()"><span id="an"></span></td>
</tr> -->
<tr>
<td style="border-top:0px;"><input class="btn btn-primary" type="submit" value="Submit" id="subb" ></td>
<td style="border-top:0px;"><input class="btn btn-info" type="reset" value="Reset"></td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!-- Footer -->
<footer >
<div style="width:100%;">
<div style="float:left;">
<p class="text-right text-info"> © DBMS Project</p>
</div>
<div style="float:right;">
<p class="text-right text-info"><strong>Developed By:</strong> Akshat, Aman & Prateek</p>
</div>
</div>
</footer>
</div>
<script>
var el = document.getElementById('checkbox');
el.addEventListener('click', function() {
if(document.getElementById("checkbox").checked === false){
document.documentElement.classList.toggle('dark-mode');
document.querySelectorAll('.inverted').forEach((result) => {
result.classList.toggle('invert');
})
}
else {
document.documentElement.classList.toggle('dark-mode');
document.querySelectorAll('.inverted').forEach((result) => {
result.classList.toggle('invert');
})
}
});
</script>
</body>
</html>