📄 changepwd.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>修改密码</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script language="javascript">
function PwdCheck(){
var pwd=document.forms[0].pwd.value;
var newpwd=document.forms[0].newpwd1.value;
var renewpwd1=document.forms[0].newpwd2.value;
if(pwd.length<=0)
alert("密码不能为空!");
else if(pwd.length<3)
alert("密码至少为6位!");
else if(newpwd.length<=0)
alert("新密码不能为空!");
else if(newpwd.length<3)
alert("新密码至少为6位!");
else if(newpwd!=renewpwd)
alert("两次输入密码不一致!");
else {
alert("验证通过,可以提交!");
document.form[0].submit();}
}
</script>
</head>
<body>
<form action="/gouwuche3/ManagerUpdate" method="get" >
<table align=center>
<tr><td>
请输入原密码:<input type="password" name="pwd"/><td>
</tr>
<tr><td>
请输入新密码:<input type="password" name="newpwd1"/><td>
</tr><tr><td>
请确认新密码:<input type="password" name="newpwd2"/><td>
</tr>
</table>
<div align=center><input type="submit" name="submit" value="提交" onclick="widow.open('ChangePwd.jsp','_self')"/>
<input type="reset" value="重置" name="reset"/></div>
</form><br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -