changeinfo_ok.asp
来自「C2C二手交易网SMRUC v2.0 全部实现了C2C电子商务功能。 特别适合」· ASP 代码 · 共 68 行
ASP
68 行
<!-- #include file="conn.asp" -->
<!-- #include file= "function.asp" -->
<%
if session("user")="" then
response.redirect "index.asp"
end if
%>
<%
infoid=request.QueryString("id")
user=session("user")
kind=request.form("kind")
bclass=request.form("bclass")
sclass=request.form("sclass")
title=ReplaceBadChar(request.form("title"))
price=ReplaceBadChar(request.form("price"))
intro=ReplaceBadChar(request.form("intro"))
expiredays=request.form("expiredays")
phone=ReplaceBadChar(request.form("phone"))
nowtime=date()
if bclass="" then
%>
<SCRIPT Language=javascript>
<!--
window.alert("请选择类别!!!");
-->
</SCRIPT>
<%
response.redirect("index.asp")
end if
if sclass="" then
%>
<SCRIPT Language=javascript>
<!--
window.alert("请选择类别!!!");
-->
</SCRIPT>
<%
response.redirect("index.asp")
end if
if price="" then
price=0
end if
if title="" then
title="[无标题]"
end if
if intro="" then
intro="[无内容]"
end if
if phone="" then
phone="[无]"
end if
sql = "update info set info_user='"&user&"',info_title='"&title&"',info_kind='"&kind&"',info_bclass="&bclass&",info_sclass="&sclass&",info_price="&price&",info_intro='"&intro&"',info_phone='"&phone&"',info_status='有效' where info_id="&infoid&""
conn.execute(sql)
%>
<SCRIPT Language=javascript>
<!--
window.alert("修改成功!!!");
location.replace("panel.asp");
-->
</SCRIPT>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?