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

📄 reg_ok.asp

📁 soft.studa.com大家一起加油啊,好痛苦啊,呵呵
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
if request.form("temp")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('非法操作!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
else

if request.form("username")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('用户帐号不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("password1")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('密码不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("password2")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('确认密码不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("password2")<>request.form("password2") then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('2次密码不同,请重新输入!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if

if request.form("email")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('Email不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("realname")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('真实姓名不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("sex")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('请选择性别!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("shopname")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('店铺名称不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("shopcontent")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('店铺描述不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("shopaddress")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('店铺地址不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if
if request.form("shopphone")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('联系电话不能为空!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
end if

username=request.form("username")
password1=request.form("password1")
email=request.form("email")
question=request.form("question")
answer=request.form("answer")
qq=request.form("qq")

realname=request.form("realname")
sex=request.form("sex")

shopname=request.form("shopname")
shopcontent=request.form("shopcontent")
shopaddress=request.form("shopaddress")
shopphone=request.form("shopphone")

set rs=server.createobject("adodb.recordset")
sql="select * from user_info where (user_id is null)"
rs.open sql,conn,1,3
rs.addnew
rs("user_name")=username
rs("user_password")=password1
rs("user_email")=email
rs("user_question")=question
rs("user_answer")=answer
rs("user_qq")=qq
rs("user_realname")=realname
rs("user_sex")=sex
rs("shop_name")=shopname
rs("shop_content")=shopcontent
rs("shop_address")=shopaddress
rs("shop_phone")=shopphone
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing

session("antry")="" '提交成功,清空session("antry"),以防重复提交!!
%>
<title><%=homepage%> - 注册成功</title>
<LINK href="style.css" type=text/css rel=stylesheet>
<body topmargin="0">
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR> 
      <TD height="27" align=middle background=images/t1.gif> <TABLE class=header width="100%" border=0 cellPadding=0 cellSpacing=0>
          <TBODY>
            <TR> 
              <TD align="center"><a href="index.asp">本站首页</a>&nbsp;</TD>
              <TD><IMG height=27 src="images/t2.gif" width=5></TD>
              <TD align="center"><a href="news_list.asp">本站新闻</a></TD>
              <TD><IMG height=27 src="images/t2.gif" width=5></TD>
              <TD align="center"><a href="shop_list.asp">店铺列表</a></TD>
              <TD><IMG height=27 src="images/t2.gif" width=5></TD>
              <TD align="center"><a href="goods_list.asp">商品列表</a></TD>
              <TD><IMG height=27 src="images/t2.gif" width=5></TD>
              <TD align="center"><a href="ssearch.asp">高级搜索</a></TD>
              <TD><IMG height=27 src="images/t2.gif" width=5></TD>
              <TD align="center"><a href="top10.asp">排行榜</a></TD>
              <TD align="center"><IMG height=27 src="images/t2.gif" width=5></TD>
              <TD align="center">留言板</TD>
            </TR>
          </TBODY>
        </TABLE></TD>
      <TD background=images/t3.gif> <TABLE class=header width="100%" border=0 cellPadding=0 cellSpacing=0>
          <TBODY>
            <TR> 
              <TD align="center">&nbsp;<a href="http://bbs.smallstick.com" target="_blank">Web 
                Designer BBS</a></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width=760 height="50" border=0 align=center cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR bgColor=#f2f6ff> 
      <TD>&nbsp;</TD>
      <TD>&nbsp;</TD>
      <TD width="100"> <table width="100%" border="0">
          <tr> 
            <td align="center"><SCRIPT language=JavaScript>
function bookmarkit(){window.external.addFavorite('http://www.smallstick.com/','小棍儿设计')}
if (document.all)document.write('<a href="#" onClick="bookmarkit()" target="_self">收藏本站</a>')
</SCRIPT></td>
          </tr>
          <tr> 
            <td align="center"><a href="help.asp" target="_blank">帮助信息</a></td>
          </tr>
          <tr> 
            <td align="center"><a href="mailto:<%=email%>">联系我们</a></td>
          </tr>
        </table></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR bgColor=#d3e1fd> 
      <TD width="69" height=25 bgColor=#d3e1fd>&nbsp;<IMG height=16 src="images/gg.gif" width=16> 
        公告:</TD>
      <TD bgColor=#d3e1fd> <marquee border="0" align="top" scrollamount="2"  scrolldelay="60" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()" width="100%">
        <%=gg%> </marquee></TD>
      <TD width="10" bgColor=#d3e1fd>&nbsp;</TD>
    </TR>
    <TR bgColor=#003bc1> 
      <TD height=3 colspan="3"></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="760" height=5 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR> 
      <TD></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width=760 border=0 align=center cellpadding="4">
  <TBODY>
    <TR> 
      <TD align="center" vAlign=top> <TABLE cellSpacing=0 cellPadding=0 width="550" border=0>
          <TBODY>
            <TR> 
              <TD width=11 height=11><IMG height=11 src="images/kuai06.gif" 
            width=11></TD>
              <TD background=images/kuai10.gif><IMG height=11 
            src="images/kuai10.gif" width=1></TD>
              <TD width=11 height=11><IMG height=11 src="images/kuai07.gif" 
      width=11></TD>
            </TR>
          </TBODY>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="550" border=0>
          <TBODY>
            <TR> 
              <TD width=8 background=images/kuai12.gif>&nbsp;</TD>
              <TD bgColor=#d3e1fd height=21> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD align=middle width=25><IMG height=15 
                  src="images/y1.gif" width=13></TD>
                      <TD>注册成功</TD>
                      <TD width=90>&nbsp;</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
              <TD width=8 background=images/kuai11.gif>&nbsp;</TD>
            </TR>
            <TR> 
              <TD width=8 background=images/kuai12.gif>&nbsp;</TD>
              <TD><table width="100%" border="0" cellpadding="6">
                  <tr>
                    <td align="center"><img src="images/success.gif" width="196" height="156"></td>
                  </tr>
                  <tr> 
                    <td align="center">注册成功!点击这里进行<a href="user_login.asp">登陆</a>!</td>
                  </tr>
                </table></TD>
              <TD width=8 background=images/kuai11.gif>&nbsp;</TD>
            </TR>
          </TBODY>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="550" border=0>
          <TBODY>
            <TR> 
              <TD width=11 height=11><IMG height=11 src="images/kuai08.gif" 
            width=11></TD>
              <TD background=images/kuai13.gif><IMG height=11 
            src="images/kuai10.gif" width=1></TD>
              <TD width=11 height=11><IMG height=11 src="images/kuai09.gif" 
            width=11></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<%end if%>
<!--#include file="bottom.asp"-->

⌨️ 快捷键说明

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