-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cart_UserChk.asp
65 lines (61 loc) · 2.71 KB
/
Cart_UserChk.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<center>
<center>
<%
dim dbpath,urlpath
dbpath=""
urlpath="Cart_Order.asp"
%>
<!--#include file=Conn.asp -->
<!--#include file=include/MyRequest.asp -->
<!--#include file=Sub.asp -->
<script type="text/javascript">
function chsubmit1()
{
if (document.form1.LoginName.value == "")
{
window.alert("用户名不能为空!");
document.form1.LoginName.focus();
return (false);}
var filter=/^\s*[@.A-Za-z0-9_-]{3,30}\s*$/;
if (!filter.test(document.form1.LoginName.value)) {
window.alert("用户名填写不正确,请重新填写!可使用的字符为(A-Z a-z 0-9 _ - .)长度不小于3个字符,不超过30个字符,注意不要使用空格。");
document.form1.LoginName.focus();
document.form1.LoginName.select();
return (false);
}
if (document.form1.LoginPass.value == "")
{
window.alert("密码不能为空!");
document.form1.LoginPass.focus();
return (false);}
var filter=/^\s*[.A-Za-z0-9_-]{5,15}\s*$/;
if (!filter.test(document.form1.LoginPass.value)) {
window.alert("密码填写不正确,请重新填写!可使用的字符为(A-Z a-z 0-9 _ - .)长度不小于5个字符,不超过15个字符,注意不要使用空格。");
document.form1.LoginPass.focus();
document.form1.LoginPass.select();
return (false);
}
}
</script>
<%
call up("结算身份选择","结算身份选择","<a href=cart_list.asp>购物车</a> » 结算身份选择")
response.write "<tr><td colspan=2 height=8></td></tr>"&_
"<tr>"&_
" <td width=50% valign=top style='border-right: 1px solid #CCCCCC'>"&_
" <table width=100% ><form action=User_LoginCheck.asp method=post name=form1 onsubmit=return chsubmit1();>"&_
" <input type=hidden name=urlpath value="&urlpath&">"&_
" <tr><td colspan=2> <b>以会员身份结算订单:</b></td></tr>"&_
" <tr><td> 用户名:</td><td><input type=text size=14 name=loginname></td></tr>"&_
" <tr><td> 密 码:</td><td><input type=password size=14 name=loginpass></td></tr>"&_
" <tr><td></td><td><input type=submit value=登录> <input type=button value=注册 onclick=window.location='User_Reg.asp?urlpath="&urlpath&"'> <a href=Member_PassWordGet.asp>忘记密码?</a></td></tr>"&_
" </form></table>"&_
" </td>"&_
" <td width=50% valign=top>"&_
" <table width=100% ><tr><td> <b>以游客身份结算订单:</b></td></tr>"&_
" <tr><td> <input onclick=document.location.href='Cart_Order.asp'; type=button value=结算></td></tr></table>"&_
" </td>"&_
"</tr>"
call down()
%>
</center>
</center>