📄 changeinfo_ok.asp
字号:
<!-- #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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -