?? untitled-1.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
</head>
<body>
<%
dim stdid1,counter,i
dim answer
stdid1=session("stdid")
counter=session("n")
'stdid1="1234568"
for i=1 to counter
stdid=stdid&trim(request.Form(1))
next
Set conn=Server.CreateObject("ADODB.Connection")
conn.open "Driver={Microsoft Access Driver (*.mdb)};DBQ="& server.MapPath("..\data\students.mdb")
set rs=server.CreateObject("ADODB.Recordset")
sql="select * from std where stdid = '"&stdid1&"'"
sql="select * from std where answers = '"&answers1&"'"
rs.open sql,conn,1,1
if(Not rs.eof) then
rs("answers1")=answer
rs("stdid")=stdid
rs.update
end if
rs.close
conn.close
set conn=nothing
response.Write("<hr>")
response.Write("你的答案是:"&answer)
response.Write("你的學號是:"&stdid)
response.Write("<a href=end.html>返回</a>")
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -