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

📄 reg.asp

📁 实用的拍卖源码。适合个人建站学习使用。仅供学习参考
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!-- #include file="inc/char.asp" -->
<%
if stopreg="是" then
	response.write"<SCRIPT language=JavaScript>alert('系统暂时停止新用户注册!');this.location.href='index.asp';</SCRIPT>"
	response.end
end if	
%>
<!-- #include file="conn.asp" -->
<!-- #include file="head2.asp" -->
<html>
<head>
<TITLE><%=webname%>--会员注册---联系QQ:6439358,联系邮箱vqqq59r@163.com,网站www.vqqq.com,谢谢大家对我们系统的支持</title>
<META http-equiv=Content-Type content="text/html; charset="<%=charset%>">
<META name="keywords" content="<%=keywords%>">
<META name="description" content="<%=description%>">
<link href="images/main_style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript" >
<!--
function checkHPG(str)
{
	if(str.search(/^(http|https):\/\/[A-Za-z0-9%\-_@]+\.[A-Za-z0-9%\-_@]{2,}[A-Za-z0-9\.\/=\?%\-&_~`@[\]:+!;]*$/gi)>=0)
	{
		return true;
	}
	else
	{
		return false;
	}
}
function getStrLen(mys)
{
	var ts=0;
	var n_strlen=mys.length;
	for(i=0;i<n_strlen;i++)
	{
		nUnc = mys.charCodeAt(i);
		if(nUnc < 1000)
		{
			ts += 1;
		}
		else
		{
			ts += 2;
		}
	}
	return ts;
}
function check()
{
	var lenUName=getStrLen(document.Form1.username.value.replace(/(^\s*)|(\s*$)/g,""));
	if(document.Form1.username.value.replace(/(^\s*)|(\s*$)/g,"")!=document.Form1.username.value || lenUName<4 || lenUName>18)
	{
		alert("用户名不得为空或含空格,由4到18个英文或2到8个中文组成!");
		document.Form1.username.focus();
		return (false);
	}
	if(document.Form1.username.value.indexOf("'")>-1 || document.Form1.username.value.indexOf("\"")>-1 || document.Form1.username.value.indexOf(",")>-1 || document.Form1.username.value.indexOf(" ")>-1 || document.Form1.username.value.indexOf(";")>-1)
	{
		alert("用户名不得包含空格,逗号,分号,单、双引号等特殊符号!");
		document.Form1.username.focus();
		return (false);
	}
	if(document.Form1.password.value=="" || document.Form1.password.value.replace(/(^\s*)|(\s*$)/g,"")!=document.Form1.password.value || document.Form1.password.value.length<6 || document.Form1.password.value.length>18)
	{
		alert("密码不得为空或包含空格,且长度介于6到18个字符之间!");
		document.Form1.password.focus()
		return (false);
	}
if (document.Form1.password.value!=document.Form1.password2.value)
{
alert("两次输入的密码不一致")
document.Form1.password.focus()
document.Form1.password.select()
return (false);
}
if (document.Form1.email.value=="")
  {
    alert("email不能为空!");
    document.Form1.email.focus();
    return (false);
  }
if (document.Form1.email.value.indexOf("'",0) >= 0 || document.Form1.email.value.indexOf(" ",0) >= 0)
    {
        alert("电子邮件中不能包含空格,单引号等非法字符!")
        document.Form1.email.focus()
        return (false);
    }
if (document.Form1.email.value.indexOf("@",0) < 0 || document.Form1.email.value.indexOf(".",0) < 0)
    {
        alert("邮件地址错误!")
        document.Form1.email.focus()
        return (false);
    }
if (document.Form1.TPL_city.value=="")
  {
    alert("所在的城市不能为空!");
    document.Form1.TPL_city.focus();
    return (false);
  }
if (!confirm('注意:为了保障安全交易,请确保您填写的信息正确,是否确认?'))
  {	return (false);
  }
document.Form1.submit();
}


function setcity() {
    switch (document.Form1.TPL_prov.value) {
        case "" :
            var cityOptions = new Array("", "");
            break;
        case "安徽" :
            var cityOptions = new Array(
            "合肥(*)", "合肥",
            "安庆", "安庆",
            "蚌埠", "蚌埠",
            "亳州", "亳州",
            "巢湖", "巢湖",
            "滁州", "滁州",
            "阜阳", "阜阳",
            "贵池", "贵池",
            "淮北", "淮北",
            "淮化", "淮化",
            "淮南", "淮南",
            "黄山", "黄山",
            "九华山", "九华山",
            "六安", "六安",
            "马鞍山", "马鞍山",
            "宿州", "宿州",
            "铜陵", "铜陵",
            "屯溪", "屯溪",
            "芜湖", "芜湖",
            "宣城", "宣城");
             break;
        case "北京" :
            var cityOptions = new Array( 
            "北京", "北京");
            break;
        case "重庆" :
            var cityOptions = new Array( 
            "重庆", "重庆");
            break;
        case "福建" :
            var cityOptions = new Array( 
            "福州(*)", "福州",
            "福安", "福安",
            "龙岩", "龙岩",
            "南平", "南平",
            "宁德", "宁德",
            "莆田", "莆田",
            "泉州", "泉州",
            "三明", "三明",
            "邵武", "邵武",
            "石狮", "石狮",
            "永安", "永安",
            "武夷山", "武夷山",
            "厦门", "厦门",
            "漳州", "漳州");
             break;
        case "甘肃" :
            var cityOptions = new Array( 
            "兰州(*)", "兰州",
            "白银", "白银",
            "定西", "定西",
            "敦煌", "敦煌",
            "甘南", "甘南",
            "金昌", "金昌",
            "酒泉", "酒泉",
            "临夏", "临夏",
            "平凉", "平凉",
            "天水", "天水",
            "武都", "武都", 
            "西峰", "西峰", 
            "张掖", "张掖");
            break;
        case "广东" :
            var cityOptions = new Array( 
            "广州(*)", "广州",
            "潮阳", "潮阳",
            "潮州", "潮州",
            "澄海", "澄海",
            "东莞", "东莞",
            "佛山", "佛山",
            "河源", "河源",
            "惠州", "惠州",
            "江门", "江门",
            "揭阳", "揭阳",
            "开平", "开平",
            "茂名", "茂名",
            "梅州", "梅州",
            "清远", "清远",
            "汕头", "汕头",
            "汕尾", "汕尾",
            "韶关", "韶关",
            "深圳", "深圳",
            "顺德", "顺德",
            "阳江", "阳江",
            "阳江", "阳江",
            "英德", "英德",
            "云浮", "云浮",
            "增城", "增城",
            "湛江", "湛江",
            "肇庆", "肇庆", 
            "中山", "中山", 
            "珠海", "珠海");
            break;
        case "广西" :
            var cityOptions = new Array( 
            "南宁(*)", "南宁",
            "百色", "百色",
            "北海", "北海",
            "桂林", "桂林",
            "防城港", "防城港",
            "河池", "河池",
            "柳州", "柳州",
            "钦州", "钦州", 
            "梧州", "梧州", 
            "玉林", "玉林");
            break;
        case "贵州" :
            var cityOptions = new Array( 
            "贵阳(*)", "贵阳",
            "安顺", "安顺",
            "毕节", "毕节",
            "都匀", "都匀",
            "凯里", "凯里",
            "六盘水", "六盘水",
            "铜仁", "铜仁",
            "兴义", "兴义", 
            "玉屏", "玉屏", 
            "遵义", "遵义");
            break;
        case "海南" :
            var cityOptions = new Array( 
            "海口(*)", "海口",
            "儋县", "儋县",
            "陵水", "陵水",
            "琼海", "琼海",
            "三亚", "三亚", 
            "通什", "通什", 
            "万宁", "万宁");
            break;
        case "河北" :
            var cityOptions = new Array( 
            "石家庄(*)", "石家庄",
            "保定", "保定",
            "北戴河", "北戴河",
            "沧州", "沧州",
            "承德", "承德",
            "丰润", "丰润",
            "邯郸", "邯郸",
            "衡水", "衡水",
            "廊坊", "廊坊",
            "南戴河", "南戴河",
            "秦皇岛", "秦皇岛",
            "唐山", "唐山",
            "新城", "新城",
            "邢台", "邢台", 
            "张家口", "张家口");
            break;
        case "黑龙江" :
            var cityOptions = new Array( 
            "哈尔滨(*)", "哈尔滨",
            "北安", "北安",
            "大庆", "大庆",
            "大兴安岭", "大兴安岭",
            "鹤岗", "鹤岗",
            "黑河", "黑河",
            "佳木斯", "佳木斯",
            "鸡西", "鸡西",
            "牡丹江", "牡丹江",
            "齐齐哈尔", "齐齐哈尔",
            "七台河", "七台河",
            "双鸭山", "双鸭山",
            "绥化", "绥化",
            "伊春", "伊春");
            break;
        case "河南" :
            var cityOptions = new Array( 
            "郑州(*)", "郑州",
            "安阳", "安阳",
            "鹤壁", "鹤壁",
            "潢川", "潢川",
            "焦作", "焦作",
            "开封", "开封",
            "漯河", "漯河",
            "洛阳", "洛阳",

⌨️ 快捷键说明

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