updatenotice.asp
来自「我的课程设计」· ASP 代码 · 共 29 行
ASP
29 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<%
'if (session("userright")="") then
' response.Redirect("../error.asp?err_on=5")
'end if
%>
<%
Dim noticeid,strTitle,content,strSQL
noticeid=request.FORM("noticeid")
strTitle=request.FORM("title")
content=request.FORM("content")
if(content="" or strTitle="") then
response.Redirect("error.asp?err_on=6")
end if
strSQL= "update notice set title='"&strTitle&"', content='"&content&"' where id="¬iceid
db.execute(strSQL)
%>
<body bgcolor="#799ae1">
<table width="75%" height="89" border="1" bordercolor="#FFFFFF" >
<tr>
<td height="62">
<Script language=JavaScript>alert('修改成功!');JavaScript:history.go(-2);</Script>
</td>
</tr>
</table>
</body>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?