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

📄 reg.asp

📁 一套很早的多用户电子商务程序
💻 ASP
字号:
 <%@ language="vbscript"%>
<%response.Expires = 0%>
<!--#include file="conn.asp"-->
<%
If Session("LoginSuccess")="" Then
Response.Write ("<script>alert('对不起,你还没有登录!');javascript:window.close()</script>")
response.end()
end if
%>
<%dim user_id
user_id=Session("LoginSuccess")

set rs_detail=server.createobject("adodb.recordset")
sqltext2="select * from RegUser where UserId='" & user_id & "'"
rs_detail.open sqltext2,conn,1,1
%>
<html>
<head>
<title>会员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>BODY {
	FONT-SIZE: 9pt
}
TD {
	FONT-SIZE: 9pt
}
a            { text-decoration: none; color: #000000 }
a:hover      { text-decoration: underline; color: #0000FF }
INPUT {
	BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #eeeeee 1px solid; BORDER-LEFT: #aaaaaa 1px solid; BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: #aaaaaa 1px solid; HEIGHT: 13pt
}
</STYLE>
<script language="javascript">
<!--
function isok(theform)
{
if (theform.name.value=='')

  {
    alert("姓名不能为空!");
    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>
<SCRIPT language=JavaScript>
<!--
function openbag(url,name){
		window.open(url,name,"height=200,width=600,left=190,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no")}
-->
</SCRIPT>
</head>

<body text="#000000" background="../pic/bg.jpg">
<div align="center"> <font color="#416327">以下是你的注册信息,如要修改,请正确填写信息后按修改注册信息按钮即可! 
  (带*号为必填项)</font> 
  <form method="POST" action="user_update.asp"  onsubmit="return isok(this)" >
                    
    <TABLE width=532 border="1" cellPadding=3 cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#0000FF" class=main>
      <TBODY>
                        <TR> 
                          
          <TD width=68 height="25" align="right">会员帐号</TD>
          <TD width="446"><b><%=rs_detail("userid")%></b> </TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right"><FONT color=#e71c17>*</FONT>您的姓名</TD>
          <TD width="446"> 
            <INPUT maxLength=20 size=20 name=name value=<%=rs_detail("name")%>>
                            [请留下您的真实姓名,便于我们给您发货。] </TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right"><FONT color=#000000><FONT              
            color=#e71c17>*</FONT>性别</FONT></TD>
          <TD width="446"><FONT color=#000000> <%=rs_detail("sex")%></FONT></TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right"><FONT color=#e71c17>*</FONT>密码</TD>
          <TD width="446"> <FONT color=#000000> 
            <INPUT type=password maxLength=18 name=pwd value=<%=rs_detail("PassWD")%>>
                            </FONT> </TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right"><FONT color=#e71c17>*</FONT>密码确认</TD>
          <TD width="446"><FONT color=#000000> 
            <INPUT              
            type=password maxLength=18 name=PasswordConfirm value=<%=rs_detail("PassWD")%>>
                            </FONT></TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right"><FONT color=#e71c17>*</FONT>E-MAIL</TD>
          <TD width="446"> 
            <INPUT maxLength=40 name=email value=<%=rs_detail("email")%>>
                            [请填上正确的E-mail地址,以便密码遗忘时索取] </TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right" valign="top"><FONT color=#e71c17>*</FONT>常用电话</TD>
          <TD width="446"> 
            <INPUT id=text5 maxLength=30              
            name=usephone  value=<%=rs_detail("phone")%>> <BR>
                            [请填写能随时联系到您的电话,以便你在购物时我们能随时与您取得联系。] </TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right" valign="top"><FONT color=#e71c17>*</FONT>收货地址</TD>
          <TD width="446"> 
            <INPUT maxLength=200 size=60 name=haddr value=<%=rs_detail("address")%>> 
                            <BR>
                            [请填写您能最直接收到购物的地址,以便我们能尽快将您购的物递交给您。] </TD>
                        </TR>
                        <TR> 
                          
          <TD width=68 align="right"><FONT color=#e71c17>*</FONT>邮编</TD>
          <TD width="446"> 
            <INPUT maxLength=15 name=postcode value=<%=rs_detail("zip")%>> 
                          </TD>
                        </TR>
                        <TR> 
                          
          <TD colSpan=2> 
            <p align="center"> 
                              <INPUT class=main1 type=submit value=修改注册信息 name=button1>
                 <a href="javascript:window.close()">关闭窗口</a>  </TD>
                        </TR>
                      </TBODY>
                    </TABLE>
                  </FORM>
</div>
</body> 
</html> 
<% rs_detail.close 
conn.close 
%>

⌨️ 快捷键说明

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