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

📄 step-1.asp

📁 西亚电子购物系统
💻 ASP
字号:
<!--#include file="header.asp" -->
<!--#include file="conn/nosql.asp" -->
<%
'进行数据来源安全性监测,跨站脚本防范
	dim server_v1,server_v2
	server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
	server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
	if mid(server_v1,8,len(server_v2))<>server_v2 then
response.write "<script language=JavaScript>{window.alert('进行数据来源安全性监测,跨站脚本防范');window.history.go(-1);}</script>"
	response.end
end if
%>
<table width="778" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="185" valign="top" class="table-right">
      <!--#include file="left.asp" -->
    </td>
    <td width="100%" height="300" valign="top" bgcolor="#FFFFFF"> 
      <%
sia_user = nosql(Request("sia_user"))

If sia_user = ""  Then
Response.Write "<br><br><font color=#ff6666>会员账号必须填写。</font>"
Response.End
End If

set rs = Server.CreateObject("ADODB.Connection")
sql = "Select * From sia_user Where sia_user = '"&sia_user&"'"
set rs = conn.Execute(sql)
If Not rs.EOF Then
Response.write "<script>alert(""您填写的用户名已经有人使用了,请重新选择!"");window.history.go(-1);</script>"
Response.End
End If
%>
      <form action=step-2.asp method=post name=formSignUp id="formSignUp">
        <script language="javascript">
	<!--//
	function checksignup() {
		if ( document.formSignUp.password.value == '' ) {
			window.alert('请输入会员密码!!');
			document.formSignUp.password.focus();
			return false;
		}
		if ( document.formSignUp.password2.value == '' ) {
			window.alert('请输入确认密码!!');
			document.formSignUp.password2.focus();
			return false;
		}
		if ( document.formSignUp.password2.value != document.formSignUp.password.value) {
			window.alert('您两次输入的密码不相同,请重新输入!!');
			document.formSignUp.password2.focus();
			return false;
		}
		if ( document.formSignUp.name.value == '' ) {
			window.alert('请输入您的真实姓名!!');
			document.formSignUp.name.focus();
			return false;
		}
		if ( document.formSignUp.zipcode.value == '' ) {
			window.alert('请输入联系人邮政编码!!');
			document.formSignUp.zipcode.focus();
			return false;
		}
            if(isNaN(document.formSignUp.zipcode.value)||( document.formSignUp.zipcode.value.length!=6)) {
			window.alert('邮政编码必须为6位西亚!');
			document.formSignUp.zipcode.focus();
			return false;
		}
		if ( document.formSignUp.tel.value == '' ) {
			window.alert('请输入联系人电话!!');
			document.formSignUp.tel.focus();
			return false;
		}
		if(isNaN(document.formSignUp.tel.value)||(document.formSignUp.tel.value.length<7)) {
		window.alert("请输入您的有效电话号码,只能是7位以上的西亚!!");
		document.formSignUp.tel.focus();
		return false;
	}
           if ( document.formSignUp.mail.value.length> 0 &&!document.formSignUp.mail.value.indexOf("@")==-1|document.formSignUp.mail.value.indexOf(".")==-1 ) {
			window.alert('请输入您正确的Email地址!!');
			document.formSignUp.mail.focus();
			return false;
		}
		if ( document.formSignUp.address.value == '' ) {
			window.alert('请输入联系地址!!');
			document.formSignUp.address.focus();
			return false;
		}
		if ( document.formSignUp.address.value.length<5) {
			window.alert('请输入详细的联系地址!!');
			document.formSignUp.address.focus();
			return false;
		}

		return true;
	}

	//-->
	</script>
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
          <tr valign="middle"> 
            <td>  <p>为了我们更好的为您服务,更准确及时的将您订购的商品送到您的手中和与您联系,请您务必详细填写您的信息,并核对无误; 国内用户请留下您的真实中文姓名。 
              请放心:您的资料未经您的允许,我们将只用于处理您的订货信息,对外保密。 (带<font color="#FF3333">*</font>号为必填项) 
            </td>
          </tr>
          <tr valign="middle"> 
            <td align="center"><font color="#FF3333">&gt;&gt;填写个人资料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
          </tr>
        </table>
        <table width="570" align="center" cellpadding="2" cellspacing="0">
          <tr valign="middle"> 
            <td width="50" rowspan="11" align="right">&nbsp;</td>
            <td width="120" height="25" align="right">会员账号:</td>
            <td width="400" height="25"> <font color="#FF3333"> &nbsp; 
              <% = Request("sia_user") %>
              </font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">密码:</td>
            <td width="400" height="25"> <input name="password" type="password" class="textbox" id="password" size="20" maxlength="16" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"> 
              <font color="#FF3333">*</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">确认密码:</td>
            <td width="400" height="25"> <input name="password2" type="password" class="textbox" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="password2" size="20" maxlength="16"> 
              <font color="#FF3333">*</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">您的真实姓名:</td>
            <td width="400" height="25"> <input name="name" type="text" class="textbox" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="name" size="12" maxlength="10"> 
              <font color="#FF3333">*</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">姓别:</td>
            <td width="400" height="25"> <input name="sex" type="radio" value="男" checked onFocus="this.blur()">
              <input type="radio" name="sex" value="女" onFocus="this.blur()">
              女</td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">邮编:</td>
            <td width="400" height="25"> <input name="zipcode" type="text" class="textbox" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="zipcode" size="12" maxlength="6"> 
              <font color="#FF3333">*</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">联系电话:</td>
            <td width="400" height="25"> <input name="tel" type="text" class="textbox" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="tel" size="20" maxlength="20"> 
              <font color="#FF3333">* </font>注:区号与电话号码之间无须&quot;-&quot;或&quot;()&quot;链接</td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">E-mail:</td>
            <td width="400" height="25"> <input name="mail" type="text" class="textbox" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="mail" size="30" maxlength="40"></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">收货(通讯)地址:</td>
            <td width="400" height="25"><select name=province size="1" class="textbox" id="province" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
                <option value="北京市">北京市</option>
                <option value="天津市">天津市</option>
                <option value="河北省">河北省</option>
                <option value="山西省">山西省</option>
                <option value="辽宁省">辽宁省</option>
                <option value="吉林省">吉林省</option>
                <option value="上海市">上海市</option>
                <option value="江苏省">江苏省</option>
                <option value="浙江省">浙江省</option>
                <option value="安徽省">安徽省</option>
                <option value="福建省">福建省</option>
                <option value="江西省">江西省</option>
                <option value="山东省" selected>山东省</option>
                <option value="河南省">河南省</option>
                <option value="内蒙古">内蒙古</option>
                <option value="黑龙江">黑龙江</option>
                <option value="湖北省">湖北省</option>
                <option value="湖南省">湖南省</option>
                <option value="广东省">广东省</option>
                <option value="广西">广西</option>
                <option value="海南省">海南省</option>
                <option value="四川省">四川省</option>
                <option value="重庆市">重庆市</option>
                <option value="台湾省">台湾省</option>
                <option value="贵州省">贵州省</option>
                <option value="云南省">云南省</option>
                <option value="西藏">西藏</option>
                <option value="陕西省">陕西省</option>
                <option value="甘肃省">甘肃省</option>
                <option value="青海省">青海省</option>
                <option value="宁夏">宁夏</option>
                <option value="新疆">新疆</option>
                <option value="香港">香港</option>
                <option value="澳门">澳门</option>
                <option value="其他">其他</option>
              </select> <input name="address" type="text" class="textbox" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" id="address" size="35" maxlength="50"> 
              <font color="#FF3333">*</font></td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">订阅《产品快讯》:</td>
            <td width="400" height="25"> <input name="info" type="checkbox" value="true" onFocus="this.blur()"> 
              &nbsp;掌握最新产品信息,令您省得更多,买得更好!</td>
          </tr>
          <tr valign="middle"> 
            <td width="120" height="25" align="right">&nbsp;</td>
            <td width="400" height="25"> <input name="Submit" type="submit" class="textbox-1" ONCLICK="javascript:return checksignup()" value="提交" onFocus="this.blur()"> 
              <input name="Submit2" type="reset" class="textbox-1" value="重置" onFocus="this.blur()"> 
              <input name="sia_user" type="hidden" id="sia_user" value="<% = Request("sia_user") %>"></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<!--#include file="footer.asp" -->

⌨️ 快捷键说明

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