📄 delnote.asp
字号:
<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checkHy.asp" -->
<!-- #include file="common.asp" -->
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {
color: #FFFFFF;
font-weight: bold;
}
body,td,th {
font-size: 12px;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<%
id=request.QueryString("id")
userid=session("HyID")
if not IsNumeric(id) then
response.write "<script>alert('非法参数');history.back()</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from notes where id="& id
rs.open sql,conn,1,3
if rs.bof and rs.eof then
response.write "<script>alert('非法参数!');history.back()</script>"
response.end
else
if userid<>rs("uid") then
response.write "<script>alert('非个人数据,出错!');history.back()</script>"
response.end
else
rs.delete
end if
end if
rs.close
set rs=nothing
response.Write"删除文件中………………请稍后"
response.write "<meta http-equiv=""refresh"" content=""1;url=notes.asp"">"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -