?? delete.asp
字號:
<% option explicit%>
<%Response.Buffer=True%>
<!--#Include file="odbc_connection.asp"-->
<html>
<head>
<title>刪除留言</title>
</head>
<body>
<form method="post" action="" name="form1">
<p align="center">請輸入刪除密碼:
<input type="password" name="password">
<input type="submit" value=" 確 定 ">
</form>
<%
If Request("password")="123456" Then '如果輸入密碼為123456,則執(zhí)行刪除
Dim sql,guest_id
guest_id=Request.QueryString("guest_id") '返回要刪除的留言記錄號
sql="Delete From guest Where guest_id =" & guest_id
db.Execute(sql) '刪除記錄
db.Close '關閉對象
Response.Redirect "index.asp" '重定向回首頁
ElseIf Request("password")<>"" Then '如果輸入密碼有誤,輸出信息
Response.Write "密碼錯誤,請重新輸入"
End If
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -