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

📄 reg1.asp

📁 一个很好的班级同学录
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>

<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="reg2.asp" onsubmit="return VerifyInput();" name="myform">
    <tr>
      <td class="F9" colspan="2"> <div align="center">注册为班级网站用户: ( <font color=red>**</font> 为必须填写的项目) </div></td>
    </tr>
    <tr>
      <td class="F9" width="194">
        <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户名 <font color=red>**</font></div></td>
      <td class="F9" width="538">
        <input name="username" type="text">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194">
        <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密码 <font color=red>**</font></div></td>
      <td class="F9" width="538">
        <input name="password" type="password">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194">
        <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;确认密码<font color=red>**</font></div></td>
      <td class="F9" width="538">
        <input type="password" name="password2">
      </td>
    </tr>
    <tr>
      <td class="F9">
        <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;昵称(外号) <font color=red>**</font></div></td>
      <td class="F9">
        <input type="text" name="nickname">
      </td>
    </tr>
    <tr>
      <td class="F9">
        <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真实姓名 <font color=red>**</font></div></td>
      <td class="F9">
        <input name="truename" type="text">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电子邮件<font color=red>**</font></div></td>
      <td class="F9" width="538">
        <input type="text" name="email">
      </td>
    </tr>
    <tr class="F9">
      <td class="F9" width="194">
        <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;性别:</div></td>
      <td height="24" class="F9" width="538">
        <input name="sex" type="radio" value="male" checked>
        <input type="radio" name="sex" value="female">
        女</td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;出生日期</div></td>
      <td class="F9" width="538">
        <input name="birthyear" type="text" id="birthyear" size="4" maxlength="4">
        年        <input name="birthmonth" type="text" id="birthmonth" size="2" maxlength="2">
        月        <input name="birthday" type="text" id="birthday" size="2" maxlength="2">        
        日</td>
    </tr>
    <tr>
      <td class="F9" height="15" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机</div></td>
      <td class="F9" height="15" width="538">
        <input type="text" name="mobile">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;家庭地址</div></td>
      <td class="F9" width="538">
        <input type="text" name="homeaddress">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮编</div></td>
      <td class="F9" width="538">
        <input name="homepostcode" type="text">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;家庭电话</div></td>
      <td class="F9" width="538">
        <input type="text" name="hometel">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;公司地址</div></td>
      <td class="F9" width="538">
        <input type="text" name="companyaddress">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮编</div></td>
      <td class="F9" width="538">
        <input name="companypostcode" type="text">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;公司电话</div></td>
      <td class="F9" width="538">
        <input type="text" name="companytel">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QQ</div></td>
      <td class="F9" width="538">
        <input type="text" name="qq">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;个人主页</div></td>
      <td class="F9" width="538">
        <input name="homepage" type="text" value="http://">
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;自我介绍</div></td>
      <td class="F9" width="538">
        <textarea name="selfintro" cols="50" rows="6"></textarea>
      </td>
    </tr>
    <tr>
      <td class="F9" width="194"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注</div></td>
      <td class="F9" width="538">
        <textarea name="memo" cols="50" rows="6"></textarea>
      </td>
    </tr>
    <tr>
      <td class="F9" colspan="2">
        <div align="center">
          <input type="submit" name="Submit" value="确定">
          &nbsp;&nbsp;&nbsp;&nbsp;
          <input type="reset" name="Submit2" value="重来">
        </div></td>
    </tr>
  </form>
</table>
<!--#include file="../public/bottom.asp" -->

<script language="JavaScript">
//-->
function VerifyInput()
{
    username = document.myform.username.value;
    if (username == "")
    {
        alert("请填写您的用户名");
        document.myform.username.focus();
        return false;
    }

	password = document.myform.password.value;
    if (password == "")
    {
        alert("请填写您的密码");
        document.myform.password.focus();
        return false;
    }

	password2 = document.myform.password2.value;
    if (password2 == "")
    {
        alert("请填写您的确认密码");
        document.myform.password2.focus();
        return false;
    }
	
    if (password2 == password)
	{
	}
	else
    {
        alert("您两次输入的密码不相同");
        document.myform.password2.focus();
        return false;
    }

    nickname = document.myform.nickname.value;
    if (nickname == "")
    {
        alert("请填写您的昵称(外号)");
        document.myform.nickname.focus();
        return false;
    }
	
    truename = document.myform.truename.value;
    if (truename == "")
    {
        alert("请填写您的真实姓名");
        document.myform.truename.focus();
        return false;
    }

	email = document.myform.email.value;
    if (email == "")
    {
        alert("请填写您的Email地址");
        document.myform.email.focus();
        return false;
	}
	
    if(document.myform.email.value.length!=0)
      { 
      if (document.myform.email.value.charAt(0)=="." || document.myform.email.value.charAt(0)=="@"|| document.myform.email.value.indexOf('@', 0) == -1 || document.myform.email.value.indexOf('.', 0) == -1||document.myform.email.value.lastIndexOf("@") ==document.myform.email.value.length-1 || document.myform.email.value.lastIndexOf(".")==document.myform.email.value.length-1)
      {
          alert("请填写正确的Email!");
          document.myform.email.focus();
          return false;
      }
      }
   else
      {   
        alert("Email的不能为空!");
        document.myform.email.focus();
        return false;
      }
}
//-->
</script>
</body>
</html>

⌨️ 快捷键说明

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