del.asp

来自「求职建站直通车」· ASP 代码 · 共 29 行

ASP
29
字号
<!--#include file="admin/checkuser.asp"-->
<!--#include file="Config.asp"-->
<%
Dim GetID,ID
GetID = split(Trim(Request.Form("DelID")),",")
Set Fs = Server.CreateObject("Scripting.FileSystemObject")
For each Str in GetID
VarStr = Split(Str,"|")
ID = VarStr(0)
Path = VarStr(1)
myconn.execute("Delete From Info Where ID="&ID)
If Fs.FileExists(server.mappath(Path)) Then
Set Os = Fs.GetFile(server.mappath(Path))
Os.Delete
Response.Write Path&"已被删除!<br>"
Else
Response.Write Path&"此图片不存在!数据已被删除<br>"
End If
Next
%>

<head>
<meta http-equiv="refresh" content="5;URL=admin/main.asp">
<link href="upstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
OK
</body>

⌨️ 快捷键说明

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