?? step-1.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">>>填寫個人資料 </font></td>
</tr>
</table>
<table width="570" align="center" cellpadding="2" cellspacing="0">
<tr valign="middle">
<td width="50" rowspan="11" align="right"> </td>
<td width="120" height="25" align="right">會員賬號:</td>
<td width="400" height="25"> <font color="#FF3333">
<% = 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>注:區號與電話號碼之間無須"-"或"()"鏈接</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()">
掌握最新產品信息,令您省得更多,買得更好!</td>
</tr>
<tr valign="middle">
<td width="120" height="25" align="right"> </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 + -