📄 newuser2.asp
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.asp"-->
<%
'##############################################################
'##【深圳 超市网网站系统 v2.0】 ##
'##程序语言:ASP、SQL、VBScript、JavaScript、HTML。 ##
'##数 据 库:Microsoft Access2000。 ##
'##运行环境:WIN98+PWS、WIN2000/XP+IIS等支持ASP+ACCESS空间。 ##
'##1、本程序所有版权归深圳市玉龙网络技术有限公司所有。 ##
'##2、任何人未经本公司同意与书面授权不得使用本程序或将本程 ##
'## 序复制、发送给他人或提供下载。
'##3、经本公司书面授权后您可以拥有本套系统的二次开发权利 ##
'## 但不可以把本系统来进行二次转让、出售或以任何方式在网上 ##
'## 传播。必须保证本系统源码不能泄露给第三方或任何变相盗用 ##
'##4、如果你未遵守上述事项,由此带来的后果和损失自负同时本公 ##
'## 司将依法追究相关的法律责任。 ##
'##5、请保留以上的版权信息,此项不会对本站程序有任何影响。 ##
'##############################################################
set rs=server.createobject("adodb.recordset")
sqltext="select * from RegUser where UserId='" & request.form("uid") & "'"
rs.open sqltext,conn,1,1
if rs.recordcount >= 1 then
if rs("userid")=request.form("uid") then
Response.Redirect "messagebox.asp?msg=此用户名已经注册过,请选用其他用户名!"
response.end
rs.close
end if
end if
%>
<html>
<head>
<title>商品详细信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>BODY {
FONT-SIZE: 10pt
}
td { font-size: 10pt; line-height: 150% }
A {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
</STYLE>
<script language="javascript">
<!--
function isok(theform)
{
if (theform.name.value.length<2)
{
alert("姓名不能为空且至少2个字符!");
theform.name.focus();
return (false);
}
if (theform.pwd.value.length<4)
{
alert("密码不能为空且至少4位!");
theform.pwd.focus();
return (false);
}
if (theform.PasswordConfirm.value!=theform.pwd.value)
{
alert("您的密码确认与上面密码不符!");
theform.PasswordConfirm.focus();
return (false);
}
if (theform.email.value.length<5|theform.email.value.indexOf("@")==-1|theform.email.value.indexOf(".")==-1)
{alert("请输入正确的Eail地址!");
theform.email.focus( );
return(false);}
if (theform.usephone.value.length<10)
{alert("请输入带区号的电话!");
theform.usephone.focus( );
return(false);}
if (theform.haddr.value.length<5)
{alert("请正确填写您详细的地址!");
theform.haddr.focus( );
return(false);}
if (theform.postcode.value.length!=6||isNaN(theform.postcode.value))
{alert("邮政编码必须为6位数字!");
theform.postcode.focus( );
return(false);}
return (true);
}
-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" background="pic/bg.jpg">
<div align="center">
<table width="626" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="pic/user/top.gif" width="631" height="26"></td>
</tr>
<tr>
<td width="599" bgcolor="#FFF0C0">
<table width="559" border="1" cellpadding="4" align="center" bordercolorlight="#FFD146" bordercolordark="#FFFCF0">
<tr>
<td width="543">
<DIV align=center>
<form method="POST" action="newuser3.asp" onsubmit="return isok(this)" >
<INPUT type=hidden value=<%=request.form("uid")%> name=uid>
<INPUT type=hidden value=2 name=methodflag>
<TABLE class=main cellPadding=3 width=569>
<TBODY>
<TR>
<TD width=551 bgColor=#ffffff align="right" colspan="2">
<p align="left"><font color="#416327"> </font><FONT
color=#416327>为了我们更好的为您服务,更准确及时的将您订购的商品送到您的手中和与您联系,请您继续详细填写您的信息,并核对无误后再提交。
(带*号为必填项)</FONT> </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right">您的会员帐号: </TD>
<TD bgColor=#ffffff width="456"><b><font color="#E71C17"><%=request.form("uid")%></font></b> </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>您的姓名:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=20 size=20 name=name>
[请留下您的真实姓名,便于我们给您发货。] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#000000><FONT
color=#e71c17>*</FONT>性别:</FONT></TD>
<TD bgColor=#ffffff width="456"><FONT color=#000000>
<INPUT id=sex
type=radio CHECKED value=男 name=sex>
男
<INPUT id=sex type=radio
value=女 name=sex>
女</FONT> </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>密码:</TD>
<TD bgColor=#ffffff width="456">
<FONT color=#000000>
<INPUT type=password maxLength=18 name=pwd>
</FONT>
</TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>密码确认:</TD>
<TD bgColor=#ffffff width="456"><FONT color=#000000>
<INPUT
type=password maxLength=18 name=PasswordConfirm>
</FONT></TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>E-MAIL:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=40 name=email>
[请填上正确的E-mail地址,以便密码遗忘时索取] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right" valign="top"><FONT color=#e71c17>*</FONT>常用电话:</TD>
<TD bgColor=#ffffff width="456">
<INPUT id=text5 maxLength=30
name=usephone>
<BR>
[请填写能随时联系到您的电话,以便你在购物时我们能随时与您取得联系。] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right" valign="top"><FONT color=#e71c17>*</FONT>收货地址:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=200 size=60 name=haddr>
<BR>
[请填写您能最直接收到购物的地址,以便我们能尽快将您购的物递交给您。] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>邮编:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=15 name=postcode>
</TD>
</TR>
<TR>
<TD bgColor=#ffffff colSpan=2 width="559">
<p align="center">
<INPUT class=main1 id=button2 type=button value=上一步 name=reset onClick="javascript:window.history.go(-1)"> <INPUT class=main1 type=submit value=下一步 name=button1>
</TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</DIV>
</td>
</tr>
</table>
</td>
<td width="33" background="pic/user/bak.gif" valign="top"><img border="0" src="pic/user/j1.gif" width="33" height="36"></td>
</tr>
<tr>
<td colspan="2"><img src="pic/user/bottom.gif" width="631" height="18"></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -