⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changepws.asp

📁 本网站是以网上购物功能为重点而开发的电子商务购物网站
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="nimda/config.asp"--> 
<!--#include file="edulcni/conn.asp"--> 
<!--#include file="edulcni/chk.asp"--> 
<%
if NOT isempty(request("ChangePwsSubmit")) then
dim UserName
UserName=request.cookies(cookieName)("UserName")
set rs=server.CreateObject("adodb.recordset")
rs.open "select UserPassword from [user] where UserName='"&UserName&"'",conn,1,3
if md5(trim(request("UserPassword")))<>trim(rs("UserPassword")) then
	call MsgBox("对不起,您输入的原密码错误!","Back","None")
else
	rs("UserPassword")=md5(trim(request("UserPassword1")))
	rs.update
	rs.close
	set rs=nothing
	call MsgBox("密码更改成功!","none","none")
end if
end if%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>E书部落—网上书城</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--#include file="head.htm"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="218" align="left" valign="top" style="border-left: 1px dotted #65A8CF; border-top: 1px dotted #65A8CF; border-bottom: 1px dotted #65A8CF"><!--#include file="uleft.asp"-->      <br></td><td width="560" align="left" valign="top" style="border-left: 1px dotted #65A8CF; border-right:1px dotted #65A8CF; border-top: 1px dotted #65A8CF; border-bottom: 1px dotted #65A8CF">
      <br>      <table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="images/w.gif" width="18" height="18"></td>
          <td style="color:#415373">修改密码</td>
        </tr>
      </table>      <br>      <form name="form1" method="post" action="">
        <table  border="0" align="center" cellpadding="3" cellspacing="3">
          <tr>
            <td>旧密码:</td>
            <td><input name="UserPassword" TYPE="Password" id="UserPassword"></td>
          </tr>
          <tr>
            <td>新密码:</td>
            <td><input name="UserPassword1" TYPE="Password" id="UserPassword1"></td>
          </tr>
          <tr>
            <td>确 认:</td>
            <td><input name="UserPassword2" TYPE="Password" id="UserPassword2"></td>
          </tr>
          <tr align="center">
            <td colspan="2"><input name="ChangePwsSubmit" type="submit" id="ChangePwsSubmit" value="确认"></td>
          </tr>
        </table>
      </form>      <br>
      </td>
  </tr>
</table>
<!--#include file="foot.htm"-->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -