-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.jsp
More file actions
33 lines (33 loc) · 888 Bytes
/
1.jsp
File metadata and controls
33 lines (33 loc) · 888 Bytes
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
function fn()
{
var x = document.getElementById('fn');
var y = document.getElementById('pw');
var htp = new XMLHttpRequest();
htp.onreadystatechange = function()
{
if(htp.readyState==4)
{
alert(htp.responseText);
}
}
htp.open("get","RegCont?un="+x.value+"&pw="+y.value,true);
htp.send();
}
</script>
<title>Insert title here</title>
</head>
<body>
<center>
Username<input type="text" id="fn"><br><br>
Password<input type="password" id="pw"><br><br>
<button onclick="fn()">Login</button>
</center>
</body>
</html>