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

📄 editpass.asp

📁 一心FLASH动画欣赏系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
username=request.form("username")
oldpass=request.form("oldpass")
newpass=request.form("newpass")
confirmpass=request.form("confirmpass")
if username<>"" and newpass=confirmpass then
sql="select * from admin where 帐号='"&username&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
if not rs.eof then
	if oldpass=rs("密码") then
	rs("密码")=newpass
	rs.update
	response.redirect "oook.asp"
	end if
	end if
end if
%>
<html>
<head>
<style type="text/css">
<!-- 
td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
p            { margin-top: 1; margin-bottom: 1 }
a:link       { text-decoration: none; color: black }
a:visited    { text-decoration: none; color: black }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>修改管理密码!</title>
</head>
<body topmargin="0">

<div align="center">
  <center>
  <table border="0" width="725">
    <tr>
      <td width="100%" height="8"></td>
    </tr>
    <tr>
      <td width="100%">
        <div align="center">
          <center>
          <table border="0" width="300" cellspacing="0" cellpadding="0">
          <form action="" method="post">
            <tr>
              <td width="100%" background="images/bg1.gif" height="23">
                <p align="center"> </td>
            </tr>
          </center>
  </center>
            <tr>
              <td width="100%" bgcolor="#FFFFFF">
                <table border="0" width="100%">
                  <tr>
                    <td width="43%" valign="bottom">
                      <p align="right">管理帐号:</td>
          <td width="57%"><input type="text" name="username" size="17"></td>
  </tr>
                  <tr>
                    <td width="43%" align="right" valign="bottom">
                      原始密码:</td>
          <td width="57%"><input type="text" name="oldpass" size="17"></td>
  </tr>
                  <tr>
                    <td width="43%" align="right" valign="bottom">
                      新设密码:</td>
          <td width="57%"><input type="text" name="newpass" size="17"></td>
  </tr>
                  <tr>
                    <td width="43%" align="right" valign="bottom">
                      确认密码:</td>
          <td width="57%"><input type="text" name="confirmpass" size="17"></td>
  </tr>
  <tr>
    <td width="100%" colspan="2">
      <p align="center"><input type="submit" value="修改" name="edit">&nbsp;&nbsp;                        
      <input type="reset" value="取消" name="reset"></p>                     
      <p align="center" style="margin-top: 8"><a href="index.asp">返回首页</a></p>                    
    </td>                    
  </tr></form>                    
                    </table>                    
                  </td>                    
            </tr>                    
          </table>                    
        </div>                    
      </td>                    
    </tr>                    
  </table>                    
</div>                                      
</body>                    
                    
</html>                    

⌨️ 快捷键说明

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