📄 recinfochang.asp
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>教师信息修改</title>
</head>
<%
tno=request.querystring("tno")
if request.form("B3")<>"修改" then
tno=session("tno")
end if
%>
<body leftmargin="150">
<table border="1" width="329" height="350">
<tr>
<td height="60" width="319" colspan="2">
<p align="center"><b><font size="7">教师信息修改</font></b></td>
</tr>
<form action="recinfochang.asp" method="post">
<tr>
<td height="23" width="102">教师姓名</td>
<td height="23" width="211">
<input type="text" name="T3" size="20" ></td>
</tr>
<tr>
<td height="34" width="102">教师职称</td>
<td height="34" width="211"><input type="text" name="T4" size="20" ></td>
</tr>
<tr>
<td height="30" width="102">所在系</td>
<td height="30" width="211"><input type="text" name="T5" size="20" ></td>
</tr>
<tr>
<td height="29" width="319" colspan="2">
<p align="center"><input type="submit" value="修改" name="B3">
<input type="reset" value="重置" name="B4"></td>
</tr>
</form>
<tr>
<td height="93" width="319" colspan="2">
<%
if request.form("B3")="修改" then
dim conn,connstr,count
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")
set rs1=Server.CreateObject("ADODB.Recordset")
tname=request.form("T3")
tlevel=request.form("T4")
tdepart=request.form("T5")
tno=session("tno")
sql1="update teacher set tname= '"&tname&"',tlevel='"&tlevel&"',tdepart='"&tdepart&"' where tno='"&tno&"'"
rs1.open sql1,conn
response.write"修改成功"&tno
end if
%>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -