updatashiti.asp
来自「该系统实现居域网网络考试和,系统平分轻松实现」· ASP 代码 · 共 31 行
ASP
31 行
<!--#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 + =
减小字号Ctrl + -
显示快捷键?