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

📄 password.asp

📁 WEB2.0圈子交友平台,以用户影音创意和分享为主导, 为用户提供:圈子,个人空间,博客,话题,相册,分类信息,短信,交友等免费服务,致力打造中国第一套 WEB2.0交友系统开源网站.
💻 ASP
字号:
<!--#include file="../main.asp" -->
<!--#include file="../Person.asp" -->
<%
  Dim mOldPassword,mOldPassword2,mNewPassword
  Dim mUserName,mUserID
  Dim rs,mSql
  mUserID = Request.Cookies("id")

  if Request.ServerVariables("REQUEST_METHOD")="POST" then
    mOldPassword = md5(Trim(Request.Form("txtOldPassword")))
    mNewPassword = Trim(Request.Form("txtNewPassword"))
    mNewPassword2 = Trim(Request.Form("txtNewPassword2"))
	mSql="Select "&WebSqlType&"_Password From "&WebSqlType&"_member Where "&WebSqlType&"_ID="&mUserID&" and "&WebSqlType&"_PassWord='"&mOldPassword&"'"
    Set rs=conn.Execute(mSql)
    If rs.Eof Then
      response.write "<script>alert('对不起,旧密码输入错误!');history.back();</Script>"
	  response.end
	Else
	    '密码修改成功
	  mSql="Update "&WebSqlType&"_member Set "&WebSqlType&"_PassWord='"&md5(mNewPassword)&"' Where "&WebSqlType&"_ID=" & mUserID
	  conn.Execute(mSql)
	  response.write "<script>alert('祝贺您,密码修改成功!');history.back();</Script>"
	End if
End if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>个人中心 - <%=citytitle%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=follow,index name=robots>
<LINK href="<%=cityurl%>images/style.css" 
type=text/css rel=stylesheet>
<LINK href="<%=cityurl%>images/msg.css" type=text/css 
rel=stylesheet>
<script>
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
</script>
<STYLE>#flashcontent P {
	COLOR: #000
}
#foot {
	DISPLAY: block; MARGIN: 0px auto; WIDTH: 720px
}
</STYLE>

<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<BODY>
<DIV id=append_parent></DIV>
<DIV id=wrap>
<!--#include file="../top.asp" -->

<DIV class=main>
<!--#include file="right.asp" -->
<DIV class=main-box-4>
<DIV class=box-top>
<DIV></DIV></DIV>
<DIV class=nav>我的位置:<A href="<%=cityurl%>">首页</A> &raquo; <A 
href="<%=cityurl%>person">个人中心</A> &raquo; <STRONG>管理我的资料</STRONG></DIV>
<DIV class=box>
<TABLE class=title cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD width="14" class=title-l></TD>
    
    <TD width="816">修改密码</TD>
	<TD width="116"><!-- <a href="/bbs/bbs_add.asp">发布新贴子</a> -->&nbsp;</TD>
    <TD width="14" class=title-r></TD></TR></TBODY></TABLE>
<form name="form1" method="post" action="?">
        <TABLE width=90% border=0 align="center" cellPadding=6 cellSpacing=0 borderColor=#111111 
      style="BORDER-COLLAPSE: collapse">
          <TBODY>

            <TR align="left">
              <TD height=30 colspan="2" style="border-bottom:1px solid red; "><DIV class=tablehead><B class=tableheadr>修改密码 </B></DIV></TD>
            </TR>



            <TR> 
              <TD width=17% height=25 align=right><span class="STYLE1">旧密码:</span></TD>
              <TD width=83% height=25 align=left style="border-bottom:1px solid #cccccc; "><INPUT name=txtOldPassword type=password id="txtOldPassword" maxLength=20>
              </TD>
            </TR>
			              <TR>
              <TD height=25 align=right><span class="STYLE1">新密码:</span></TD>
              <TD height=25 align=left style="border-bottom:1px solid #cccccc; "><INPUT name=txtNewPassword type=password id="txtNewPassword" maxLength=20></TD>
            </TR> 
			<tr>
              <td width="17%" height="25" align="right"><span class="STYLE1">新密码确认:</span></td>
              <td width="83%" height="25" align="left" style="border-bottom:1px solid #cccccc; ">
			  <INPUT name=txtNewPassword2 type=password id="txtNewPassword2" maxLength=20></td>
            </tr>
            <TR align="center"  valign="bottom"> 
              <TD height=10 colSpan=2></TD>
            </TR>
          </TBODY>
        </TABLE>
        <table width="90%" border="0" align="center" cellpadding="6" cellspacing="0" bordercolor="#111111" 
      style="BORDER-COLLAPSE: collapse">
          <tbody>
            <tr align="center"  valign="bottom">
              <td height="56" colspan="2">
                <input name="Step23"  style="FONT-FAMILY: 宋体; FONT-SIZE: 12px; HEIGHT: 30px" type="submit" value="修改密码" />

              </td>
            </tr>
          </tbody>
        </table>
	  </form>

</DIV>
<DIV class=box-bot>
<DIV></DIV></DIV></DIV></DIV>
<DIV id=bot><!--#include file="../bottom.asp" --></DIV>
<DIV id=wrap-bot>
<DIV></DIV></DIV></DIV>
</BODY></HTML>

⌨️ 快捷键说明

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