📄 shopreg_save.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("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
shopname=request.form("shopname")
zu=request.form("zu")
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="&session("user_id")&""
rs.open sql,conn,1,3
rs("shop_name")=shopname
rs("zu")=zu
rs("shop_content")=shopcontent
rs("shop_address")=shopaddress
rs("shop_phone")=shopphone
rs("shop_img")="img/eshop.gif"
rs("font")="0"
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
session("antry")="" '提交成功,清空session("antry"),以防重复提交!!
%>
<meta http-equiv="refresh" content="2;URL=user.asp">
<LINK href="style.css" type=text/css rel=stylesheet>
<body><TABLE width="760" class=page border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD>
<!--#include file="top.asp"-->
<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><table width="100%" border="0" cellpadding="6">
<tr>
<td align="center">申请成功,请等待审核!</td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<%end if%>
<!--#include file="bottom.asp"-->
</TD>
</TR>
</TBODY>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -