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

📄 mymm.asp

📁 MisCMS源码
💻 ASP
字号:
<!--#include file="config.Asp"-->
<!--#include file="md5.Asp"-->
<% if session("login")="" then
	response.Redirect"index.asp"
	end if %>
<% if request("act")="save" then
	yhid=request.Form("yhid")
	pwd1=md5(request.Form("pwd1"))
	pwd2=md5(request.Form("pwd2"))
	pwd3=md5(request.Form("pwd3"))
	if pwd2<>pwd3 then
	response.Write"<script language=javascript>alert('新密码确认错误!');history.go(-1);</script>"
	response.end()
	else
	set rst=server.CreateObject("adodb.recordset")
	rst.open"select * from favuserxx where yhid=" & yhid & "",conn,3,3
	if pwd1<>rst("yhmm") then
	response.Write"<script language=javascript>alert('输入原密码错误!');history.go(-1);</script>"
	response.end()
	else
	rst("yhmm")=pwd2
	rst.update
	rst.close
	set rst=nothing
	set conn=nothing
	response.Write"<script language=javascript>alert('修改成功!');location.href('myinfo.asp');</script>"
	response.End()
	end if
	end if
	end if %>
<% yhid=session("login") %>
<!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>无标题文档</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="50%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#0099CC">
  <tr>
    <td bgcolor="#FFFFFF" height="25" align="center">修改密码</td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">
	<form name="form1" action="?act=save" method="post">
	<table width="100%"  border="0" cellpadding="3" cellspacing="1">
      <tr>
        <td width="24%" align="right">输入原密码:</td>
        <td width="76%"><input name="pwd1" type="password" id="pwd1" size="30">
          <input name="yhid" type="hidden" id="yhid" value="<%= yhid %>"></td>
      </tr>
	  <tr>
        <td width="24%" align="right">输入新密码:</td>
        <td width="76%"><input name="pwd2" type="password" id="pwd2" size="30"></td>
      </tr>
	  <tr>
        <td width="24%" align="right">确认新密码:</td>
        <td width="76%"><input name="pwd3" type="password" id="pwd3" size="30"></td>
      </tr>
	  <tr>
        <td colspan="2" align="center"><input type="submit" name="Submit" value="修 改">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="button" name="Submit2" value="放弃"></td>
        </tr>
    </table>
	</form></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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