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

📄 login.asp

📁 电子商务购物系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%'禁止网页缓存
Response.Buffer = True 
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache"
'验证码生成
dim yz2
randomize timer
yz2=Int((8999)*Rnd +1009)
session("ok")=yz2
%>


<html>
<head>
<title><%=webname%>--用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<script language="javascript">
	<!--//
	function checksignup() {

		if ( document.userlogin.username.value == '' ) {
			window.alert('请输入名称!!');
			document.userlogin.name.focus();
			
		}
		else if ( document.userlogin.userpassword.value == '' ) {
			window.alert('请输入密码!!');
			document.userlogin.pass.focus();
		}
		else if ( document.userlogin.yz2.value == '' ) {
			window.alert('请输入网页上显示的4位数的验证码!!');
			document.userlogin.yz2.focus();
		}
else {
			return true;
			}
		return false;
	}

	//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<!--#include file="webtop.asp"-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" class="table-zuoyou">
  <tr> 
    <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <table border="0" align="center" cellpadding="0" cellspacing="0" width="480">
        <tr> 
          <td> <br>
            <div align="center"><font color="#FF0000"><b><font color="#666666">用户登录</font></b></font> 
              <%'禁止网页缓存
Response.Buffer = True 
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache"
'验证码生成
dim yz
randomize timer
yz=Int((8999)*Rnd +1009)
session("ok")=yz
%>
              <script language="javascript">
	<!--//
	function checksignup() {

		if ( document.userlogin.username.value == '' ) {
			window.alert('请输入名称!!');
			document.userlogin.name.focus();
			
		}
		else if ( document.userlogin.userpassword.value == '' ) {
			window.alert('请输入密码!!');
			document.userlogin.pass.focus();
		}
		else if ( document.userlogin.yz.value == '' ) {
			window.alert('请输入网页上显示的4位数的验证码!!');
			document.userlogin.yz.focus();
		}
else {
			return true;
			}
		return false;
	}

	//-->
	</script>
              <table width="95%" border="0" cellspacing="1" cellpadding="1" align="center">
                <form name="userlogin" method="post" action="checkuserlogin.asp">
                  <tr> 
                    <td align="center" height="22"><font color="#999999">顾客您好,购买商品请先登录</font></td>
                  </tr>
                  <tr> 
                    <td align="center"> 
                      <table align="center" cellpadding="0" cellspacing="2" border="0">
                        <tr valign="middle"> 
                          <td height="20" align="center">名&nbsp; 称&nbsp; </td>
                          <td> 
                            <div align="left"> 
                              <input name="username" type="text" class="wenbenkuang" id="username" size="12" maxlength="12">
                            </div>
                          </td>
                        </tr>
                        <tr valign="middle"> 
                          <td align="center">密&nbsp; 码&nbsp; </td>
                          <td> 
                            <div align="left"> 
                              <input name="userpassword" type="password" class="wenbenkuang" id="userpassword" size="12" maxlength="12">
                            </div>
                          </td>
                        </tr>
                        <tr valign="middle"> 
                          <td align="center">验证码&nbsp; </td>
                          <td> 
                            <input name="yz2" type="password" class="wenbenkuang" id="yz2" size="7" maxlength="5">
                            <span style="background-color: #FFFFFF"><font color="#ff3333"><%=yz2%></font></span> 
                          </td>
                        </tr>
                        <tr valign="middle"> 
                          <td colspan="2" align="center"> 
                            <input name="Submit" type="submit" class="go-wenbenkuang" value="登录" onClick="javascript:return checksignup()">
                            <input name="Submit2" type="reset" class="go-wenbenkuang" value="注册" onClick="window.location='reg.asp'">
                            <input name="Submit3" type="button" class="go-wenbenkuang" value="忘密" onClick="window.location='getpwd.asp'">
                            <input type="hidden" name="linkaddress" value="<%=request.servervariables("http_referer")%>">
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </form>
              </table>
              <br>
              <br>
            </div>
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!--#include file="service1.asp"-->
<!--#include file="copyright.asp"-->
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checkfk()
{
   if(checkspace(document.fkinfo.username.value)) {
	document.fkinfo.username.focus();
    alert("请填写用户名!");
	return false;
  }
   if(checkspace(document.fkinfo.userpassword.value)) {
	document.fkinfo.userpassword.focus();
    alert("请填写密码!");
	return false;
  }
}
//-->
</script> 

⌨️ 快捷键说明

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