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

📄 login.asp

📁 一个很好的班级同学录
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../public/conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户登陆</title>
<link href="../mycss.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
	 <%
	  username=trim(request("username"))
      password=trim(request("password"))
      if username="" or password="" then
          errmsg=errmsg+"<br>"+"<li>用户名和用户密码不能为空!"
          founderr=true
      else
	      set rs=server.createobject("adodb.recordset")
          sql="select * from user where username='"&trim(request("username"))&"'"
          rs.open sql,secondconn,3,3
		  'rs.open sql,conn,3,3
		  
          if rs.eof then
             errmsg=errmsg+"<br>"+"<li>你输入的用户不存在!"
             founderr=true
          elseif password=rs("password") then
             session("username")=rs("username")
			 session("quanxian")=rs("quanxian")
             rs("LoginCount")=rs("LoginCount")+1		     
             rs.update
          else
             errmsg=errmsg+"<br>"+"<li>你输入的密码错误!"
             founderr=true
          end if
		end if
		rs.close
    	set rs=nothing
	  %>
<body topmargin="0" leftmargin="0">
<!--#include file="../public/top.asp" -->
<table width="760" border="1" align="center" cellpadding="4" cellspacing="2" class="font9Black">
<form method="post" action="" onsubmit="return VerifyInput();" name="myform">
    <tr>
      <td width="538" height="182" colspan="2" class="F9">
	    <div align="center">
	 <%
		if founderr=true then
		    response.Write errmsg
		else
		    response.Write username+" 登陆成功!"
		end if

	  %>
	    
	  
	      </div></td>
    </tr>
  </form>
</table>
<!--#include file="../public/bottom.asp" -->
</body>
</html>

⌨️ 快捷键说明

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