delcheck.asp

来自「简单留言簿」· ASP 代码 · 共 15 行

ASP
15 行
字号
<!--#include file="password.asp"-->
<!--#include file="conn.asp"-->
<%
	dim id
	id=request.querystring("id")

	if request.form("password")=password then
		sql="delete from users where id="&id&""
'		response.write sql
		conn.execute sql
		response.write "<script>alert('帖子被成功删除!');window.location='index.asp';</script>"
	else
		response.write "<script>alert('密码不正确!请重试……');window.location='del.asp?id="&id&"';</script>"
	end if
%>

⌨️ 快捷键说明

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