📄 coursechangp.asp
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>course chang post </title>
</head>
<body>
<%
tno=request.querystring("tno")
cno=request.querystring("cno")
if request.form("B1")<>"提交" then
session("tno")=tno
session("cno")=cno
end if
%>
<table border="1" width="409" height="371">
<form action="coursechangp.asp" method="post">
<tr>
<td height="56" width="399" colspan="2">
<p align="center"><b><font size="7">课程修改</font></b></td>
</tr>
<tr>
<td height="36" width="142">上课地点</td>
<td height="36" width="251"><input type="text" name="T1" size="20"></td>
</tr>
<tr>
<td height="32" width="142">上课时间</td>
<td height="32" width="251"><input type="text" name="T2" size="20"></td>
</tr>
<tr>
<td height="22" width="142">课程学时</td>
<td height="22" width="251"><input type="text" name="T3" size="20"></td>
</tr>
<tr>
<td height="47" width="399" colspan="2">
<p align="center"><input type="submit" value="提交" name="B1"> <input type="reset" value="重置" name="B2"></td>
</tr></form>
<tr>
<td height="111" width="399" colspan="2">
<%
if request.form("B1")="提交" then
dim conn,connstr
connstr="Driver={sql server};UID=sa;PWD=sa;database=zikao;server=BILLGATES"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
set rs=Server.CreateObject("ADODB.Recordset")
tno=session("tno")
cno=session("cno")
caddress=request.form("T1")
ctime=request.form("T2")
clong=request.form("T3")
sql="update course set classroom= '"&caddress&"',courstime='"&ctime&"',courselong='"&clong&"' where courseno='"&cno&"' and coursetecid='"&tno&"'"
rs.open sql,conn
response.write"修改成功"
end if
%>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -