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

📄 login.asp

📁 俄罗斯方块源码 俄罗斯方块源码 俄罗斯方块源码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<%
if request("action")="chk" then
 dim username,password
 username=checkstr(trim(request.form("username")))
 password=checkstr(trim(request.form("password")))
 
 if username="" or password="" then
   call mb("请输入帐号或密码!","",0)
 end if
 
 set rs=server.createobject("adodb.recordset")
 sql="select * from author where username='"&username&"'"
 rs.open sql,conn,1,3
 
 if rs.bof and rs.eof then
   call mb("对不起,您的帐号或密码有错误!","",0)
 elseif rs("password")<>password then
   call mb("对不起,您的帐号或密码有错误!","",0)
 else
   rs("logins")=rs("logins")+1
   rs.update
   session("username")=username
   session("userid")=rs("userid")
   call mb("恭喜您,登陆成功!\n\n这是您的第"&rs("logins")&"次登陆!","user_index.asp",1)
 end if
 rs.close
 set rs=nothing
else
%>
<script language=jvascript>
<!--
function checkform()
 {
 if (login.username.value=="") 
   {alert("请输入登陆帐号!");
    login.username.focus();
	return false;
   }
 if (login.password.value=="")
  {alert("请输入登陆密码!");
   login.password.focus();
   return false;
  }
 return true;
}
-->
</script>
<table width="770" height="200" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td valign="top"><form action="?action=chk" method="post" name="login" id="login">
        <TABLE align=center 
      background="images/line01.gif" 
      border=0 cellPadding=0 cellSpacing=0 width="100%">
          <TR> 
            <TD height=24 width="55%">&nbsp;<IMG height=12 
            src="images/A3.gif" width=12> 当前位置:<A 
            href="index.asp" title="联盟首页">闪耀吧动漫网</A> -&gt; 联盟作者登陆</TD>
            <TD height=21 width="45%">&nbsp;</TD>
          </TR>
        </TABLE>
        <br>
        <TABLE align=center border=0 borderColor=#000000 cellPadding=0 cellSpacing=0 width="500">
          <TR> 
            <TD background="images/T_back.gif" width="18%"><IMG src="images/T_1.gif" width=90 height=24 border="0"></TD>
            <TD 
          background="images/T_back.gif" 
          width="78%"><strong>闪 客 作 者 </strong>- 登 陆</TD>
            <TD width="4%"><IMG height=24 
            src="images/T_2.gif" 
          width=29></TD>
          </TR>
        </TABLE>
        <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
          <tr bgcolor="#FFFFFF"> 
            <td width="110" height="25" align="center">帐 号:</td>
            <td width="390"> <input name="username" type="text" class="input" id="username" size="25"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24" align="center">密 码:</td>
            <td> <input name="password" type="password" class="input" id="password" size="25"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25">&nbsp;</td>
            <td> <input name="Submit" type="submit" class="button" value=" 登 陆 "></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>

<%end if%>
<!--#include file="bottom.asp"-->
</DIV>
</BODY></HTML>

⌨️ 快捷键说明

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