reg.asp

来自「国内第一数字点卡销售程序。功能强大。 完整无错!数据文件经MD5加密!经严格测」· ASP 代码 · 共 160 行

ASP
160
字号
<!--#include file="top.asp"-->
<td width="15" height="3">&nbsp;</td>
<!--#include file="lest.asp"--></td>
  <td width="15" height="30">&nbsp;</td>
			<td valign="top">
  <form method="POST" action="regsave.asp" name="sunbtob" >
	  
	<div align="center">
		  <br>
           
			<table border="1" style="border-collapse: collapse" width="74%" cellpadding="0" id="table1" height="387" bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0" bordercolor="#FFFFFF" cellspacing="0">
			  <tr>
			    <td colspan="2" height="28" bgcolor="#0099CC">
			    <p align="center"><font  color="#FFFFFF" size="3"><b>注 册 会 员</b></font></td>
			  </tr>
			  <tr>
			    <td colspan="2" valign="middle" style="padding-top: 3px; padding-bottom: 3px" height="33">
			    <p align="center">用户名请选择便于记忆的4-18个英文字母、数字或者汉字.注:(带<font color="#FF0000">*</font>号为必填项)</td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="33">用户名 :</td>
			    <td width="56%" style="padding:5px; " height="33"><input type="text" name="user_name" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="33">密 码 :</td>
			    <td width="56%" style="padding:5px; " height="33"><input type="password" name="user_pass" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="33">确认密码 :</td>
			    <td width="56%" style="padding:5px; " height="33"><input type="password" name="user_pass2" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="33">E-mail :</td>
			    <td width="56%" style="padding:5px; " height="33"><input type="text" name="user_mail" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="34">
			    Q&nbsp; Q :</td>
			    <td width="56%" style="padding:5px; " height="34"><input type="text" name="user_qq" size="20" class="ipt">
			    </td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="34">地 址 :</td>
			    <td width="56%" style="padding:5px; " height="34">
				  <input type="text" name="user_adds" size="30" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="34">电 话 :</td>
			    <td width="56%" style="padding:5px; " height="34"><input type="text" name="user_tel" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="34">邮 编 :</td>
			    <td width="56%" style="padding:5px; " height="34"><input type="text" name="user_postcode" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="37%" align="right" style="padding:5px; " height="34">真实姓名 :</td>
			    <td width="56%" style="padding:5px; " height="34"><input type="text" name="user_namec" size="20" class="ipt"><font color="#FF0000"> 
			    *</font></td>
			  </tr>
			  <tr>
			    <td width="96%" align="right" colspan="2" valign="middle" height="25">
				  <p align="center"><input type="submit" value="提交" name="B1" onclick='return ssxx();'>&nbsp;&nbsp;&nbsp;&nbsp;
	             <input type="reset" value="重置" name="B2"></td>
			  </tr>
		    </table>
	  </div>
	  <p align="center">
	   </p>
</form></td>
		<td width="1"  background="images/line.jpg"></td>
		</tr>
	</table>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function ssxx()
{
   if(checkspace(document.sunbtob.user_name.value)) {
	document.sunbtob.user_name.focus();
    alert("对不起,请填写您的姓名!");
	return false;
  }
  if(checkspace(document.sunbtob.user_pass.value)) {
	document.sunbtob.user_pass.focus();
    alert("对不起,请填写您的密码!");
	return false;
  }
  if (document.sunbtob.user_pass.value!=document.sunbtob.user_pass2.value)
        {       document.form1.user_pass.focus();	
                alert('两次输入密码不一致,请重新确认!谢谢合作!');
                return false;}
  if(checkspace(document.sunbtob.user_qq.value)) {
	document.sunbtob.user_qq.focus();
    alert("对不起,请填写QQ!");
	return false;
  }
  if(checkspace(document.sunbtob.user_adds.value)) {
	document.sunbtob.user_adds.focus();
    alert("对不起,请填写地址!");
	return false;
  }
  if(checkspace(document.sunbtob.user_tel.value)) {
	document.sunbtob.user_tel.focus();
    alert("对不起,请填写您的电话!谢谢合作!");
	return false;
  }
  if(checkspace(document.sunbtob.user_postcode.value)) {
	document.sunbtob.user_postcode.focus();
    alert("对不起,请填写您的邮编!谢谢合作!");
	return false;
  }
  if(checkspace(document.sunbtob.user_namec.value)) {
	document.sunbtob.user_namec.focus();
    alert("对不起,请填写您的姓名!谢谢合作!");
	return false;
  }
  if(document.sunbtob.user_mail.value.length!=0)
  {
    if (document.sunbtob.user_mail.value.charAt(0)=="." ||        
         document.sunbtob.user_mail.value.charAt(0)=="@"||       
         document.sunbtob.user_mail.value.indexOf('@', 0) == -1 || 
         document.sunbtob.user_mail.value.indexOf('.', 0) == -1 || 
         document.sunbtob.user_mail.value.lastIndexOf("@")==document.sunbtob.user_mail.value.length-1 || 
         document.sunbtob.user_mail.value.lastIndexOf(".")==document.sunbtob.user_mail.value.length-1)
     {
      alert("Email地址格式不正确!");
      document.sunbtob.user_mail.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空!");
   document.sunbtob.user_mail.focus();
   return false;
   }
   
}
//-->
</script>
<!--#include file="copy.asp"-->

⌨️ 快捷键说明

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