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

📄 reg.asp

📁 这是一个网上购物物网站,数据库的连接在CONN.ASP中,既有前台网站,也有后台管理
💻 ASP
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员注册</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<SCRIPT language="javascript">
<!--
function del_space(s)
{
	for(i=0;i<s.length;++i)
	{
	 if(s.charAt(i)!=" ")
		break;
	}

	for(j=s.length-1;j>=0;--j)
	{
	 if(s.charAt(j)!=" ")
		break;
	}

	return s.substring(i,++j);
}

function VerifySubmit()
{
	uid = del_space(document.all("username").value);
     if (uid.length == 0)
     {
        alert("您忘了填写用户名!");
	return false;
     }

	pwd = del_space(document.all("password").value);
     if (pwd.length == 0)
     {
        alert("您忘了填写口令!");
	return false;
     }

	pwd2 = del_space(document.all("password2").value);
     if (pwd2!=pwd)
     {
        alert("两次输入的口令不相同,请重新填写!");
		return false;
     }
	 
	 tishi = del_space(document.all("question").value);
     if (tishi.length == 0)
     {
        alert("您忘了填写密码提示!");
        return false;
     }
	 
	 tsda = del_space(document.all("reply").value);
     if (tsda.length == 0)
     {
        alert("您忘了填写密码提示答案!");
        return false;
     }

	uname = del_space(document.all("truename").value);
     if (uname.length == 0)
     {
        alert("您忘了填写姓名!");
        return false;
     }

	sfz = del_space(document.all("sfz").value);
     if (sfz.length != 15 && sfz.length != 18)
     {
        alert("身份证号码不正确,请核对后重新填写!");
        return false;
     }

	email = del_space(document.all("email").value);
     if (email.length == 0)
     {
        alert("您忘了填Email!");
	return false;
     }

	tel = del_space(document.all("telphone").value);
     if (tel.length == 0)
     {
        alert("您忘了填写联系电话!");
        return false;
     }

	return true;
}
//-->
  </SCRIPT>
</head>
<body background="images/topbj.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999" class="bk">
  <tr>
    <td height="1">
	</td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="43%" border="0" align="center" cellpadding="2" cellspacing="1" class="bk1" id="AutoNumber1" style="border-collapse: collapse">
  <tr>
    <TD class="cont">
      <FORM action="zccheck.asp" method="POST" name="regform" onSubmit="return VerifySubmit()">
        <p><br>
        </p>
        <CENTER>
          <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 width=510 bordercolor="#000000">
            <TR>
              <TD COLSPAN="2" class="cont" width="410"><B>&lt;会员帐户&gt;</B></TD>
            </TR>
            <TR>
              <TD ALIGN="RIGHT" class="cont" width="73">用 户 名:</TD>
              <TD class="cont">
                <input name="username" type=text class="cont" id="username" size="15" maxlength="30">
                <FONT COLOR="#FF0000"> *(登陆帐号)</FONT></TD>
            </TR>
            <TR>
              <TD align="right" class="cont" width="73">密  码:</TD>
              <TD class="cont">
                <INPUT name="password" type=password class="cont" id="password" size="15" maxlength="30">
                <FONT COLOR="#FF0000"> *</FONT></TD>
            </TR>
            <TR>
              <TD align="right" class="cont" width="73">确认密码:</TD>
              <TD class="cont">
                <input name="password2" type=password class="cont" id="password2" size="15" maxlength="30">
                <font color="#FF0000"> *</font></TD>
            </TR>
            <TR>
              <TD align="right" class="cont" width="73">提示问题<b>:</b></TD>
              <TD class="cont">
                <input name="question" type="text" id="question" size="26" maxlength="30">
                <font color="#FF0000"> *</font></TD>
            </TR>
            <TR>
              <TD align="right" class="cont" width="73">提示答案<b>:</b></TD>
              <TD class="cont">
                <input name="reply" type="text" id="reply" size="26" maxlength="30">
                <font color="#FF0000"> * </font></TD>
            </TR>
            <TR>
              <TD COLSPAN="2" class="cont" width="410"><B>&lt;用户资料&gt;</B></TD>
            </TR>
            <TR>
              <TD align="right" class="cont" width="73">您的姓名:</TD>
              <TD class="cont">
                <INPUT name="truename" type=text class="cont" id="truename" size="15" maxlength="30">
                <FONT COLOR="#FF0000"> *</FONT> </TD>
            </TR>
            <TR>
              <TD ALIGN=RIGHT class="cont" width="73">性  别:</TD>
              <TD class="cont">
                <INPUT type=radio name="sex" value="男" checked>
                <INPUT type=radio name="sex" value="女">
                女</TD>
            </TR>
            <TR>
              <TD ALIGN=RIGHT class="cont" width="73">身份证号:</TD>
              <TD class="cont">
                <input name="sfz" type="text" id="sfz"maxlength="18" size="20">
                <FONT COLOR="#FF0000"> *</FONT> </TD>
            </TR>
            <TR>
              <TD ALIGN=RIGHT class="cont" width="73">Email地址:</TD>
              <TD class="cont">
                <INPUT type="text" class="cont" name="email" size="20" maxlength="50">
                <FONT COLOR="#FF0000"> *</FONT></TD>
            </TR>
            <TR>
              <TD ALIGN=RIGHT class="cont"><div align="left">地址;</div></TD>
              <TD class="cont"><input type="text" name="address"></TD>
            </TR>
            <TR>
              <TD ALIGN=RIGHT class="cont" width="73">联系电话:</TD>
              <TD class="cont">
                <INPUT name="telphone" type="text" class="cont" id="telphone" size="20" maxlength="60">
                <FONT COLOR="#FF0000"> *</FONT></TD>
            </TR>
            <TR>
              <TD colspan="2" align="middle" width="410"><INPUT class="cont" type="submit" value="提 交" name="submit">
                 
                  <INPUT class="cont" type="reset" value="重 填" name="reset"></TD>
            </TR>
          </TABLE>
        </CENTER>
        <P>
      </FORM>
      <p> </TD>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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