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

📄 update.asp

📁 这是一个单用户的留言本
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--#INCLUDE FILE="conn.asp"-->

<%
dim RS1,SQL
SQL="select * from Login"
set Rs1=Conn.execute(SQL)
%>
<%if session("password")<>rs1("password")or session("username")<>rs1("username") then
response.Redirect"login.htm"%>
<%end if%>

<%
dim RS,strSQL
strSQL="select * from Login"
set Rs=server.CreateObject("adodb.Recordset")
Rs.source=strSQL
Rs.CursorType=3
Rs.LockType=3
Rs.ActiveConnection=Conn
Rs.open
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改密码</title>
<style type="text/css">
<!--
.style1 {	font-size: 12px;
	color: #9999CC;
}
.style2 {
	font-size: 14px;
	color: #9999CC;
}
a:link {
	color: #9999CC;
	text-decoration: none;
}
a:visited {
	color: #9999CC;
	text-decoration: none;
}
a:hover {
	color: #6666FF;
	text-decoration: underline;
}
a:active {
	color: #9999FF;
	text-decoration: none;
}
body {
	background-image: url(images/beijing.gif);
}
-->
</style>
</head>

<body>
<br><br><br><br><br><br>
<div align="center">
<%if Not rs.eof then
rs("Username").value=Cstr(server.HTMLEncode(request("Username")))
rs("Password").value=Cstr(server.HTMLEncode(request("Password")))
rs.update
%>

    <div align="center">
      <table width="300" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="160" align="center" valign="top"><table width="300" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="31" background="images/login.gif">&nbsp;</td>
              </tr>
            </table>
              <table width="300" border="0" cellpadding="0" cellspacing="1" bgcolor="#666699">
                <tr>
                  <td height="129" align="center" valign="top" bgcolor="#FFFFFF"><table width="298" height="129" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="35" colspan="3" bgcolor="#F0F0F0"><div align="center" class="style2"><a href="Index.asp">修改用户成功,点击返回!</a></div></td>
                      </tr>
                      <tr>
                        <td height="30">&nbsp;</td>
                        <td height="30"><span class="style1">用户名:</span></td>
                        <td><div align="left" class="style1"><%=rs("Username")%></div></td>
                      </tr>
                      <tr>
                        <td width="75" height="33">&nbsp;</td>
                        <td width="65" height="33"><span class="style1">密 码:</span></td>
                        <td width="158"><div align="left" class="style1"><%=rs("Password")%></div></td>
                      </tr>
                      <tr bgcolor="#F0F0F0">
                        <td height="31"><div align="center">
                             
                            
                        </div></td>
                        <td height="31">&nbsp;</td>
                        <td height="31">&nbsp;</td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <p>
      <%else%>
  </p>
    <table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="160" align="center" valign="top"><table width="300" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="31" background="images/login.gif">&nbsp;</td>
            </tr>
          </table>
            <table width="300" border="0" cellpadding="0" cellspacing="1" bgcolor="#666699">
              <tr>
                <td height="129" align="center" valign="top" bgcolor="#FFFFFF"><table width="298" height="129" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="28" colspan="3" bgcolor="#F0F0F0">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="30">&nbsp;</td>
                      <td width="187" rowspan="2"><p align="center" class="style2"><a href="Index.asp">找不到用户名,点击返回!</a></p>
                      </td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="55" height="40">&nbsp;</td>
                      <td width="56">&nbsp;</td>
                    </tr>
                    <tr bgcolor="#F0F0F0">
                      <td height="31"><div align="center">   </div></td>
                      <td height="31">&nbsp;</td>
                      <td height="31">&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
      </tr>
    </table>
    <p>
      <%end if%>
<%rs.close
conn.close
%>
    </p>
</div>
</body>
</html>

⌨️ 快捷键说明

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