📄 user_reg_modi_pwd.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<% if session("userid")="" or session("nickname")=""then%>
<script language="javascript">
alert("您未登录或超时了,请重新登录!");
document.location.href="login.asp"
//history.go(-1);
</script>
<%'Response.redirect "login.asp"
else%>
<html>
<head>
<title>修改密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function validata_form() {
validity=true;
if (!check_empty(document.form1.old_pwd.value))
{ validity=false;
alert('请输入4-20位原密码!');
document.form1.old_pwd.focus();
return validity; }
if (!check_empty(document.form1.pwd.value) || !check_empty(document.form1.pwd2.value))
{ validity=false;
alert('请输入4-20位新密码吧');
document.form1.pwd.focus();
return validity;}
if (document.form1.pwd.value!=document.form1.pwd2.value)
{validity=false;
alert('新密码和确认新密码不一样,请重新填写!');
document.form1.pwd.focus();
return validity; }
if (validity==true)
{return(confirm("真的修改吗?按确定修改,按取消返回"));}
return validity;
}
function check_empty(text) {
return (text.length > 3); // returns false if empty
}
-->
</script>
<link href="bbs.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<!--#include file="opendb.asp" -->
<%set rs=server.createobject("ADODB.Recordset")
sqlstr="select * from users where nickname='"&session("nickname")&"'"
rs.open sqlstr,conn,1,3
'if rs.recordcount>0 then%>
<table width="100%" border="0">
<tr>
<td align="center" class="px14"> </td>
</tr>
<tr>
<td><table width="760" border="0" align="center" bgcolor="#f0f0f0">
<tr>
<td align="center" bgcolor="#0065CA" class="px14"><font color="#FFFFFF">修改您的密码</font></td>
</tr>
</table>
</td>
</tr>
<form name="form1" method="post" action="user_reg_modi_pwd_write.asp" onsubmit="return validata_form()">
<tr>
<td align="center"><table width="760" border="1" align="center" cellspacing="0" bordercolorlight="#666666" bordercolordark="#FFFFFF">
<tr>
<td width="30%" align="right" bgcolor="#BBDDFF">原密码</td>
<td width="70%" bgcolor="#f0f0f0"><input name="old_pwd" type="password" class="input" id="old_pwd" maxlength="20">
4-20位字母或数字<font color="#FF0000"> * </font></td>
</tr>
<tr>
<td align="right" bgcolor="#BBDDFF">新密码</td>
<td bgcolor="#f0f0f0"> <input name="pwd" type="password" class="input" id="pwd" maxlength="20"></td>
</tr>
<tr>
<td align="right" bgcolor="#BBDDFF">确认新密码</td>
<td bgcolor="#f0f0f0"><input name="pwd2" type="password" class="input" id="pwd2" maxlength="50">
</td>
</tr>
</table>
<br>
<input type="submit" name="Submit" value=" 修 改 ">
<input type="reset" name="Submit2" value=" 清 除 "> </td>
</tr>
</form>
</table>
</body>
</html>
<% End If %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -