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

📄 register.asp

📁 用户界面 一次作业
💻 ASP
字号:
<!--#include file="conn.asp" -->
<html>
<head>
<LINK href="images/csssf.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户注册</title>
</head>
<body>
<form class='MainForm' name='frmAction' method='POST' action=''>
<input type='hidden' name='check'>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="400" height="296" background="images/reg.gif"><table width="400" border="0">
      <tr>
        <th width="164">&nbsp;</th>
        <td width="226">&nbsp;</td>
      </tr>
	  <tr>
        <th>&nbsp;</th>
        <td>&nbsp;</td>
      </tr>
	  <tr>
        <th>&nbsp;</th>
        <td>&nbsp;</td>
      </tr>
	  <tr>
        <th align="right" class="newscss" scope="row">用户名:</th>
        <td><input name="UserName" type="text" value='' size="15"></td>
      </tr>
      <tr>
        <th align="right" class="newscss" scope="row">密码:</th>
        <td><input name="PassWord1" type=password value='' size="15"></td>
      </tr>
      <tr>
        <th align="right" class="newscss" scope="row">确认密码:</th>
        <td><input name="PassWord2" type=password value='' size="15"></td>
      </tr>
	  <tr>
        <th align="right" class="newscss" scope="row">班级:</th>
        <td><label>
          <select name="classname" size="1">
            <option value="信计04-1班">信计04-1班</option>
            <option value="信计04-2班">信计04-2班</option>
          </select>
          </label></td>
      </tr>
	  <tr>
        <th>&nbsp;</th>
        <td>&nbsp;</td>
      </tr>

    </table>
      <table width="400" border="0">
        <tr>
          <th scope="row"><img src="images/confirm.gif"onClick='btn_save();'style="cursor:hand">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/cancle.gif" onClick='btn_quit();' style="cursor:hand"></th>
        </tr>
      </table></td>
  </tr>
</table>
<script LANGUAGE='javascript'>
	function btn_save(){
					var bool=true;
	        if(frmAction.UserName.value==""){
	          bool=false;
	          alert("用户名必填!");
	          frmAction.UserName.focus();
	          return;
	        }
	        if(frmAction.PassWord1.value==""){
	          bool=false;
	          alert("密码必填!");
	          frmAction.PassWord1.focus();
	          return;
	        }
			 if(frmAction.PassWord1.value.length>=12){
	         bool=false;
	         alert("密码应小于12位!");
	       }
	        if(frmAction.PassWord2.value==""){
	          bool=false;
	          alert("密码必填确认!");
	          frmAction.PassWord2.focus();
	          return;
	        }
		     if(!(frmAction.PassWord1.value==frmAction.PassWord2.value)){
	         bool=false;
	         alert("密码输入不一致!");
	         frmAction.PassWord1.focus();
	         frmAction.PassWord2.focus();
	         return;
	       }
		      if(bool){
			  frmAction.check.value="add";
			  frmAction.action="check.asp";
		      frmAction.submit();
		      }
	}
	function btn_quit(){
          frmAction.action="login.asp";
          frmAction.submit();
        }
</script>
</form>
</body>
</html>

⌨️ 快捷键说明

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