📄 userlogin.jsp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<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">
<!--
.STYLE5 {color: #000000}
-->
</style>
</head>
<script language="javascript">
function userCheck(){
if(document.myform.user_name.value=="")
{
alert("请输入用户名!");
document.myform.user_name.focus();
return false;
}
else if(document.myform.user_psw.value=="")
{
alert("请输入用户密码!");
document.myform.user_psw.focus();
return false;
}
}
function register()
{
window.location="register.jsp";
}
</script>
<body>
<form action="userLoginCheck.jsp" method="post" name="myform" onSubmit="return userCheck()">
<table width="200" height="200" border="1" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><div align="left"><img src="images/vip.jpg" width="179" height="23" /></div></td>
</tr>
<tr>
<td width="13"><span class="STYLE5">用户名</span></td>
<td width="171"><input type="text" name="user_name" /></td>
</tr>
<tr>
<td width="13"><span class="STYLE5">密码</span></td>
<td><input name="user_psw" type="password" /></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="登录" />
<!--input type="button" value="注册" name="register" onclick="register()" /-->
<input name="reset" type="reset" value="取消" />
<a href="register.jsp">注册</a>
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -