📄 departsave.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.inc"-->
<link rel="stylesheet" type="text/css" href="css.css">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
v_collID =request("scollege")
v_depName = request("depName")
v_desc = request("textarea")
sql = "select * from department_info where DepName = '"&v_depName&"' and College_ID ="&v_collID
set rs = server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
if not rs.eof then
%>
添加系部重复 请<a href="adddepartment.asp">返回</a><%
response.End()
end if
rs.addnew
rs("DepName")=v_depName
rs("DepDesc")=v_depName
rs("College_ID")=v_collID
rs.update
rs.close
set rs = nothing
conn.close
set conn = nothing
response.Redirect("adddepartment.asp")
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -