📄 check.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%!String username="crane";%>
<%!String password="123456";%>
<%request.setCharacterEncoding("gb2312");%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {font-family: "宋体"}
.STYLE2 {font-size: larger}
body,td,th {
color: #CCFF33;
font-family: 新宋体;
font-size: medium;
}
body {
background-image: url(DUNCAN6.jpg);
background-color: #3300CC;
}
-->
</style>
</head>
<body>
<img src="DUNCAN6.jpg" />
<%
String name=request.getParameter("DengLuMing");
String pass=request.getParameter("ID");
if(name.equals(username)){
if(pass.equals(password)){%>
<meta http-equiv=refresh content="2;url=shanchu.html" />
<h3> </h3>
<h2><span class="STYLE1">成功登陆两秒后跳转</span><span class="STYLE2"></span>
<% }
else{
out.println("密码错误");
}
}
else{
out.println("用户名或密码错误");
}
%>
</h2>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -