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

📄 r.asp

📁 网上新闻调查发布系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<HTML>
<HEAD>
<TITLE>用户注册</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<script>
<!--
window.focus()
function chg(url)
{
	window.opener.document.form1.face.value=url;
	window.opener.document.form1.faceImg.src=url;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.id; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' 必须填写E-mail地址.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' 必须是数字.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' 数字范围 '+min+' 到 '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' 项目是空的.\n'; }
  } if (errors) alert('发现以下错误:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
<style type="text/css">
<!--
body {
	background-image: url(../images/bg.gif);
}
body,td,th {
	font-size: 12px;
	color: #000000;
}
-->
</style></HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (未标题-1) -->
<TABLE WIDTH=500 height="194" BORDER=0 CELLPADDING=0 CELLSPACING=0>
	<TR align="center" valign="top">
		<TD height="50"><img src="../images/register.gif" width="500" height="50"></TD>
  </TR>
	<TR>
		<TD align="center" valign="top"><form name="form1" method="post" action="r2.asp">
		  <table width="500" border="0">
            <tr>
              <td colspan="2" scope="row"><div align="center">尊敬的用户,您在加入我们的会员的时候必须保证所填所有注册信息的真实性.</div></td>
            </tr>
            <tr>
              <td width="206" scope="row"><div align="right">用户名:</div></td>
              <td width="284"><input name="dlm" type="text" id="用户名"> 
              </td>
            </tr>
            <tr>
              <td scope="row"><div align="right">真实姓名:</div></td>
              <td><input name="zxm" type="text" id="真实姓名"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">年龄:</div></td>
              <td><input name="nl" type="text" id="年龄" size="10"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">性别:</div></td>
              <td><select name="xb" id="性别">
                <option value="男">男</option>
                <option value="女">女</option>
              </select> 
              </td>
            </tr>
            <tr>
              <td scope="row"><div align="right">工作单位:</div></td>
              <td><input name="dw" type="text" id="工作单位"> 
              </td>
            </tr>
            <tr>
              <td scope="row"><div align="right">联系电话:</div></td>
              <td><input name="tel" type="text" id="联系电话"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">QQ:</div></td>
              <td><input name="qq" type="text" id="QQ"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">电子邮件或MSN:</div></td>
              <td><input name="mail" type="text" id="电子邮件"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">忘记密码提示问题:</div></td>
              <td><input name="mts" type="text" id="忘记密码提示问题"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">忘记密码问题回答:</div></td>
              <td><input name="mhd" type="text" id="忘记密码问题回答"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">预设您的密码:</div></td>
              <td><input name="mm" type="password" id="预设您的密码"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right">请输入验证码</div></td>
              <td><input name="getcode" type="text" id="验证码" size="8">
              <img src="code/code.asp"></td>
            </tr>
            <tr>
              <td scope="row"><div align="right"></div></td>
              <td><input name="Submit" type="submit" onClick="MM_validateForm('dlm','','R','zxm','','R','nl','','RinRange0:99','dw','','R','tel','','RinRange0:99999999999','qq','','RisNum','mail','','RisEmail','mts','','R','mhd','','R','getcode','','RinRange0:9999','mm','','R');return document.MM_returnValue" value="提交">
              <input type="reset" name="Submit" value="重置">
              <input name="ripadd" type="hidden" id="ripadd" value="<%= Request.ServerVariables("REMOTE_ADDR")%>"></td>
            </tr>
          </table>
	    </form>												</TD>
	</TR>
</TABLE>
</BODY>
</HTML>

⌨️ 快捷键说明

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