-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSecurityQuestion.jsp
184 lines (178 loc) · 4.43 KB
/
SecurityQuestion.jsp
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
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Security Question</title>
<style>
* {
box-sizing: border-box;
}
body {
margin:0;
font-family: Arial;
overflow: scroll;
}
.header {
overflow:hidden;
background-color:#b3e0ff;
padding: 20px 10px;
}
.header a {
float: left;
color: #66b5ff;
text-align:center;
padding: 12px;
text-decoration: none;
font-size: 18px;
line-height: 25px;
border-radius: 4px;
}
.header a.logo {
overflow:hidden;
display:block;
float:left;
}
.header-left {
float:right;
}
.header a:hover {
background-color:#ddd;
color: #0084ff;
}
.header-right{
float:right;
}
.button1 {
background-color:#38acec;
border:none;
color: white;
padding: 20px;
text-align:center;
text-decoration:none;
display:inline-block;
font-size: 16px;
cursor:pointer;
float:left;
}
.buttonr {
background-color:#38acec;
border:none;
color: white;
padding: 20px;
text-align:center;
text-decoration:none;
display:inline-block;
font-size: 16px;
cursor:pointer;
float:left;
}
.roundbutton {
border-radius: 50%;
float: left;
}
.roundbutton:hover {
background-color:#ddd;
color: #0084ff;
}
.footer {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
background-color: #b3e0ff;
color: black;
text-align: left;
}
input
{
width:100%;
padding:10px;
box-sizing:borderbox;
background:none;
outline:none;
resize:none;
border:0;
font-family:'Montserrat',sans-serif;
transition:all .3s;
border-bottom:2px solid #bebed2
}
input:focus
{
border-bottom:2px solid #78788c
}
select {
width: 100%;
padding: 7px 10px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
background: #f1f1f1;
}
</style>
</head>
<body>
<div class="header">
<img src="logo.png" alt="logo" class="logo" height="50" width="200">
<div class="header-right">
<a href="helpus.html">Help Us to Find Someone</a>
<a href="GetInvolved.html">Get Involved</a>
<a href="AboutUs.html">About Us</a>
<button class="buttonr roundbutton" style= " width: 100px; height:60px; text-align: center; float: left;">Helpline</button>
<a href="FAQs.jsp"><button class="buttonr roundbutton" style= " width: 100px; height:60px; float: left;"">FAQ</button></a>
</div>
</div>
<form method="post">
<table style="padding:50px;">
<tr>
<td><b>Your UserId</b></td>
<td><input type="text" name="Uid" placeholder="enter your Id" required/></td>
</tr>
<tr>
<td>
<b>Security Question :</b>
</td>
<td>
<select name="question" required>
<%
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/help4u","root","vasant.1");
PreparedStatement pst = con.prepareStatement("SELECT * FROM questionnaire");
ResultSet rs = pst.executeQuery();
while(rs.next())
{
%>
<option value="<%= rs.getInt("Number")%>"><%= rs.getString("Questions")%></option>
<% } %>
</select>
</td>
</tr>
<tr>
<td><b>Security Answer :</b></td>
<td><input type="text" name="answer" placeholder="Enter Answer" required/></td>
</tr>
<tr>
<br>
<td></td>
<td><input type="submit" value="Next" formaction="Question_Forget" style="background-color:red;
color: white;
padding: 10px 10px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 50%;
opacity: 0.9;"/></td>
</tr>
</table>
</form>
<div class = "footer">
<p>© Copyright 2018 Help4U.com.<br>All Rights Reserved.<br>
Powered By Enhance Technologies and St.Angelo's</p>
</div>
</body>
</html>