📄 updatashiti.asp
字号:
<!--#include file="conn.asp"-->
<%
dim tihao,shiti,a,b,c,d,zhengque
tihao=session("id")
if tihao<>"" then
shiti=request.Form("timu")
a=request.Form("a")
b=request.Form("b")
c=request.Form("c")
d=request.Form("d")
zhengque=request.Form("zhengque")
set rs=server.createobject("adodb.recordset")
cmd="select * from test where id like '"&tihao&"'"
rs.open cmd,conn,1,3
rs("id")=tihao
rs("question")=shiti
rs("a")=a
rs("b")=b
rs("c")=c
rs("d")=d
rs("ans")=zhengque
'rs("kaohao")=kaohao
rs.update
response.Write("<script>alert('试题修改成功!');window.location.href('Manageshiti.asp')</script>")
else
response.Write("<script>alert('未选择试题!');window.location.href('Manageshiti.asp')</script>")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -