⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 save.asp

📁 在线考试系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<% 
if  session("pass")<>1 then
    response.redirect "login.asp"
end if
a=Request("a")
b=Request("b")
c=Request("c")
d=Request("d")
ans=Request("ans")
ans=ucase(ans)
q=Request("q")
 Set conn = Server.CreateObject("ADODB.Connection")
  conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& Server.MapPath("exercise.mdb")
  
 sql="update test set question='"&q&"',a='"&a&"', b='"&b&"', c='"&c&"', d='"&d&"', ans='"&ans&"' where id="&Request("id")
 
 conn.execute (sql)
 response.redirect "edit.asp?id="&Request("id")
%>

<body>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -