userinfo.asp

来自「商业网站开发有源代码可以运行」· ASP 代码 · 共 78 行

ASP
78
字号
<SCRIPT LANGUAGE="JavaScript">
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

  function checkuu()
{
    if(checkspace(document.userlogin.username.value)) {
	document.userlogin.username.focus();
    alert("用户名不能为空!");
	return false;
  }
    if(checkspace(document.userlogin.userpassword.value)) {
	document.userlogin.userpassword.focus();
    alert("密码不能为空!");
	return false;
  }
	
  }
</script> 
<table width=100% border=0 align=center cellpadding=0 cellspacing=0>
  <tr> 
    <td background="images/bj_x.gif" height="1"></td>
  </tr>
  <tr>
    <td height="22" bgcolor="EDECEC"> 
      <table cellspacing=0 cellpadding=0 width=170 height="20">
        <tr> 
          <td width=5>&nbsp;</td>
          <td> 
            <div align="center"></div>
             
            &nbsp;会员注册</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td background="images/bj_x.gif" height="1"></td>
  </tr>
  <tr> 
    <td height=41 > 
      <div align=center> 
        <%if request.cookies("songxf")("username")="" then%>
        <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">用户名: 
                <input type="text" name="username" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; BORDER-LEFT: #ffffff 1px groove; COLOR: #333333; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff"; size="10" maxlength="10">
              </td>
            </tr>
            <tr> 
              <td align="center">密 码: 
                <input type="password" name="userpassword" size="10" maxlength="10"style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; BORDER-LEFT: #ffffff 1px groove; COLOR: #333333; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff"; >
              </td>
            </tr>
            <tr> 
              <td align="center" height="38"> 
                <input name="imageField" type="image" src="images/login_bt_login.gif" width="45" height="19" border="0" onFocus="this.blur()">
                <a href="reg.asp"><img src="images/login_bt_zc.gif" width="45" height="19" border="0"></a> 
                <a href="getpwd.asp"> <img src="images/login_bt_wm.gif" border="0"></a> 
              </td>
            </tr>
          </form>
        </table>
        <%end if%>
      </div>
    </td>
  </tr>
</table>

⌨️ 快捷键说明

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