乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      用ASP制作在線測(cè)試

       悟靜 2010-05-12
      <%
      CurQ = Request.Form("CurQ")
      Answ = Request.Form("Answ")
      correct=Request.Form("Correct")
      wrong=Request.Form("Wrong")
      'Poor Man's IsNull Code goes here
      If PoorMansIsNull(CurQ) Then          
              CurQ = 1                           
              correct = 0
              wrong = 0
      End If
      If PoorMansIsNUll(Answ) Then
              CurQ = CurQ + 1
              If CurQ > (Your maximum number of questions) Then
      %>
              <p>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 conntemp = server.createobject("adoDB.Connection")
          set myDSN = '(your DSN info goes here)
          conntemp.Open myDSN
          set mySQL = "SELECT * FROM QUESTIONS WHERE QuestionID=" & CurQ
          set rsTemp= conntemp.Execute(mySQL)
      %>
      <h2>Question Number <%=rsTemp("QuestionID")%> </h2>
      <form method=POST action="myASP.ASP">
          <input type=hidden name=CurQ value=<%=CurQ%>>
      Your question is <%=rsTemp("Question")%><br>
      Answer:
              <select name="AnsW">
                      <option value=1><%=rsTemp("AnswerA")</option>
                      <option value=2><%=rsTemp("AnswerB")</option>
                      <option value=3><%=rsTemp("AnswerC")</option>
                      <option value=4><%=rsTemp("AnswerD")</option>
               </select>   
      <input type=hidden value="<%=correct%>"><input type=hidden value="<%=wrong%>">
      <input type=reset value="Clear the Form"><input type=submit value="OK!">
      </form>
      <% Else %>
      <%   set conntemp = server.createobject("adoDB.Connection")
           set myDSN = '(your DSN info goes here)
           conntemp.Open myDSN
           set mySQL = "SELECT * FROM QUESTIONS WHERE QuestionID=" & CurQ
           set rsTemp= conntemp.Execute(mySQL)
                   If AnsW = rsTemp("CorrectAns") Then
      %>
                      <p>Congratulations. You got it right. Whee</p>
                      <% correct = correct + 1 %>
                   <% Else %>
                      <p>I'm sorry, you missed the question. You can review by
      reading: </p>
                      <p><%=rsTemp("reference")</p>
                      <% wrong = wrong + 1 %>
                   <% End If %>
            <form method=POST action="myASP.ASP">
                    <input type="hidden" name=curQ value="<%=curQ%>">
                    <input type="hidden" name=correct value="<%=correct%>">
                    <input type="hidden" name=wrong value="<%=wrong%>">
                    <input type="submit" value="Next Question"%>
            </form>
      <% End If %>
      資料引用:http://www./1472.html

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多