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

📄 changeinfo.asp

📁 ASP会员注册管理系统 主要用于ASP实现会员注册
💻 ASP
字号:
<!--#include file="conn.asp" -->
<%
if request("username") <> empty then
username=trim(replace(request("username"),"'",""))
password=trim(replace(request("password"),"'",""))



for i=1 to len(username)
user=mid(username,i,1)
if user="'" or user="%" or user="<" or user=">" or user="&" or user="|" then
response.write "<script language=JavaScript>" & "alert('您的用户名含有非法字符,请重新输入!');" & "history.back()" & "</script>"
response.end
end if
next
for i=1 to len(password)
pass=mid(password,i,1)
if pass="'" or pass="%" or pass="<" or pass=">" or upass="&" or pass="|" then
response.write "<script language=JavaScript>" & "alert('您的密码含有非法字符,请重新输入!');" & "history.back()" & "</script>"
response.end
end if
next


sql = "Select * From info Where 用户名='"&Username&"' And 密码='"&Password&"'"
set rs=conn.execute (sql)
If rs.EOF Then
	response.write "<script language=JavaScript>" & chr(13) & "alert('用户名和密码不正确!');" & "history.back()" & "</script>"
	response.end
Else	
	session("pass")="passed"
	session("username")=username
	response.redirect"change.asp"
End If
Conn.Close
Set Conn=Nothing
else
%>
<html>
<head>
<title>修改会员信息登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
BODY {  font-family: "宋体"; font-size: 9pt}
TABLE {  font-family: "宋体"; font-size: 9pt}
a:link {  color: #000099; text-decoration: none}
a:visited {  color: #000099; text-decoration: none}
a:active {  color: #FF0000; text-decoration: underline}
a:hover {  color: #FF0000; text-decoration: underline}
BODY {
	 FONT-SIZE: 9pt; MARGIN-LEFT: 10px; MARGIN-TOP: 10px; font-color: #000099
}
</STYLE>
</head>

<body bgcolor="#FFFFFF">
<h1 align="center">&nbsp;</h1>
<h1 align="center">&nbsp;</h1>
<h1 align="center"><font color="#FF0000">修改会员信息登录<br>
  </font></h1>
<hr align="center">
<div align="center"><br>
  请在下表中输入您的会员编号及对应的登录密码 </div>
<form action=changeinfo.asp  method=post name="login" >
  <div align="center"> 
    <table width="20" border="0" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
      <tr> 
        <td> 
          <table border=1 width="260">
            <tbody> 
            <tr> 
              <td height="30">用户名称</td>
              <td height="30"> 
                <input name=username size="20" maxlength="20" >
              </td>
            </tr>
            <tr> 
              <td>登录密码</td>
              <td> 
                <input name=password type=password size="20" maxlength="20" >
              </td>
            </tr>
            </tbody> 
          </table>
        </td>
      </tr>
    </table>
    <p> 
      <input name=b1 type=submit value=开始登录>
      <br>
    <p><a href="regedit.asp">新用户注册</a>  <a href="search.asp">忘记密码</a>  <a href="changeinfo.asp">修改信息</a></p>
    <p>程序制做:<a href="http://www.soonhost.com">迅捷主机网</a></p>
  </div>
</form>
<hr>
<p align="center">&nbsp;</p>
</body>
</html>
<%
end if
%>

⌨️ 快捷键说明

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