modifyspecial2_submit.asp

来自「这是一个学生毕业时做的教务系统」· ASP 代码 · 共 62 行

ASP
62
字号
<%@ Language=VBScript %>
<!--#include file=conn.asp -->
<%
IF not(Session("KEY")="super" or Session("KEY")="input") THEN
response.redirect "login.asp"
response.end
END IF
SpecialID=Request.Form("SpecialID")
if SpecialID="" then
%>
<script language=javascript>
history.back()
alert("请选择需要修改的专题名称!")
</script>

<%
Response.End
end if

NewSpecialName=trim(Request.Form("NewSpecialName"))
if NewSpecialName="" then
%>
<script language=javascript>
history.back()
alert("专题名称不能为空!")
</script>
<%
Response.End
end if

sql="update Special set SpecialName='" & NewSpecialName & "' where SpecialID=" & SpecialID
conn.execute(sql)


%>

<html>

<head>
<meta http-equiv="refresh" content="3;url=ModifySpecial1.asp">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
</head>

<body>

<p> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="0" width="450" align=center cellspacing="1" bgcolor="#000000">
<tr>
<td width="100%" bgcolor="#FFFFFF" align="center">
<p>&nbsp;</p>
<p>专题名称已经修改!</p>
<p>&nbsp;</p>
</td>
</tr>
</table>
</body>

</html>

⌨️ 快捷键说明

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