admin_seeall_del.asp

来自「旅游管理系统 用ASP+SQL 2」· ASP 代码 · 共 27 行

ASP
27
字号
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" style="background-color: #999999" text="#000000">
<!--#include file="includefile/conn.asp" -->
<%
dim id
id=Request("id")
if session("administrator")<>"administrator" then
Response.Redirect "admin_login.asp"
end if
if id="" then
Session("errormsg")="非法的操作,无法判断对象!"
Response.Redirect "error.asp"
end if
sq="delete  from giveme where id="+id
conn.Execute sq
conn.close
session("1")="被选定的预订情况已成功删除!"
Response.Redirect "ok.asp"
%>
</body>
</html>

⌨️ 快捷键说明

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