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

📄 changepws.asp

📁 学校网上书店用于学校网上卖书或者方便学生了解学校图书都具体有什么图书
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="manage/inc/config.asp"--> 
<!--#include file="inc/conn.asp"--> 
<!--#include file="inc/chk.asp"--> 

<%
if NOT isempty(request("ChangePwsSubmit")) then
dim username
username=request.cookies(cookieName)("username")
set rs=server.CreateObject("adodb.recordset")
rs.open "select password from [user] where username='"&username&"'",conn,1,3
if md5(trim(request("password")))<>trim(rs("password")) then
	call MsgBox("对不起,您输入的原密码错误!","Back","None")
else
	rs("password")=md5(trim(request("password1")))
	rs.update
	rs.close
	set rs=nothing
	call MsgBox("密码更改成功!","none","none")
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>大学网上书店</title>
<link href="style.css" rel="stylesheet" type="text/css">


</head>

<body>
<!--#include file="head.htm"-->


<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="219" align="left" valign="top"><!--#include file="uleft.asp"-->      <br></td><td width="561" align="left" valign="top">
      <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="password" type="password" id="password"></td>
          </tr>
          <tr>
            <td>新密码:</td>
            <td><input name="password1" type="password" id="password1"></td>
          </tr>
          <tr>
            <td>确 认:</td>
            <td><input name="password2" type="password" id="password2"></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 + -