📄 bookdel.asp
字号:
<!--#include file="../../conn/dbconn2.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
Response.Buffer = true
Response.ExpiresAbsolute=now()-1
Response.Expires=0
Response.CacheControl="no-cache"
%>
<%
if Not ChkPost then
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if
if session("flag")<>1 then
response.Redirect("../../login/login1.asp")
response.end
end if
%>
<%
if Chkrequest(request("id")) then
id=request("id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if
if Chkrequest(request("infoid")) then
infoid=request("infoid")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if
set rs=server.createobject("adodb.recordset")
sql="select * from book where bookid="&id&" and info_id="&infoid&""
rs.open sql,conn,1,3
if not rs.eof then
rs.delete
rs.update
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write"<SCRIPT language=JavaScript>alert('删除成功!');"
response.write"this.location.href='contact_edit.asp?id="&id&"';</SCRIPT>"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -