用ASP制作在线测试
2018-09-06 13:01
<%
CurQ = Request.Form(CurQ)
Answ = Request.Form(Answ)
correct=Request.Form(Correct)
wrong=Request.Form(Wrong)
Poor Mans IsNull Code goes here
If PoorMansIsNull(CurQ) Then
CurQ = 1
correct = 0
wrong = 0
End If
If PoorMansIsNUll(Answ) Then
CurQ = CurQ + 1
(Your maximum number of questions) Then
%>
Congratulations. You have completed this test. You missed <%=wrong%>
questions,
but got <%=correct%> questions right. That is equivilent to a
<%=(correct/(max#ofQs)%>%.
Thank you for doing the test.
<% End If %>
set myDSN = (your DSN info goes here)
conntemp.Open myDSN
set MySQL(和PHP搭配之最佳组合) = SELECT * FROM QUESTIONS WHERE QuestionID= CurQ
set rsTemp= conntemp.Execute(MySQL(和PHP搭配之最佳组合))
%>
Answer:
<% Else %>
set myDSN = (your DSN info goes here)
conntemp.Open myDSN
set MySQL(和PHP搭配之最佳组合) = SELECT * FROM QUESTIONS WHERE QuestionID= CurQ