标题:数据接收不完整,请求高手指点!
只看楼主
cgt0
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-9-2
结帖率:0
已结贴  问题点数:20 回复次数:1 
数据接收不完整,请求高手指点!
数据发送没有问题,就是接收上没了差错,接收不到小题以及答案!
求高手指点!

此段为数据内容
------------------------------
<!-- 不定项选择题 -->
<%if bdx<>0 then%>
<br>  
    <div align="center">  
      <center>  
      <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750">  
        <tr>  
          <td bgcolor="#66CCFF">不定项选择题(共 <%=bdx%> 道,每题 <%=bdxs%> 分)</td>  
        </tr>  
        <%  
        for r=1 to bdx  
        if maxtype7=0 then  
                          response.write "<input type=hidden name=messageds value='题库里暂无不定项选择题'>"  
        flagbdx=0  
        %><tr>  
          <td align=center>题库里暂无不定项选择题  
          </td>  
        </tr>  
        <%else  
        randomize  
        sid=int((maxtype7+1)*rnd+1)  
        set rsq=conn.execute("select * from type7 where id="&sid)

        while rsq.eof  
        randomize  
        sid=int((maxtype7+1)*rnd+1)  
        set rsq=conn.execute("select * from type7 where id="&sid)  
        wend  
        %>  
        <tr>  
          <td>    <%=r%>、<%=rsq("题干")%>
                  <input type=hidden name="tbdx<%=r%>" value="<%=rsq("id")%>">
                  <input type=hidden name="tbdxzt<%=r%>" value="<%=rsq("主题")%>">  
         </td>                  
        </tr>  
                 <%
                 for i=1 to 5
                 set rst=conn.execute("select * from type6 where 主题="&rsq("主题")&" and 标签="&i )
                 %>
                  <tr>  
          <td>    <%=i%>、<%=rst("题干")%>  
          <input type=hidden name="thbdx<%=i%>" value="<%=rst("标签")%>">
                  <input type=hidden name="bdxzt<%=i%>" value="<%=rst("id")%>"> </td>  
        </tr>
               
        <tr>  
          <td>  
                  
           <input name="bdxcate<%=i%>" type="checkbox" id="bdxcate<%=i%>" value="A">A、<%=rst("选项1")%><br>      
               <input name="bdxcate<%=i%>" type="checkbox" id="bdxcate<%=i%>" value="B">B、<%=rst("选项2")%><br>      
               <input name="bdxcate<%=i%>" type="checkbox" id="bdxcate<%=i%>" value="C">C、<%=rst("选项3")%><br>      
               <input name="bdxcate<%=i%>" type="checkbox" id="bdxcate<%=i%>" value="D">D、<%=rst("选项4")%><br>
          </td>  
        </tr>  
  <%   
  next
  end if   
  next %>   
      </table>
--------------------------------------------

数据接收
++++++++++++++++++++++++++
<!-- 不定项选择题 -->
<%if request("bdx")<>0 then %>
<br> <div align="center">   
      <center>   
      <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750">   
        <tr>   
          <td bgcolor="#AFE2F1">不定项选择题(共 <%=request("bdx")%> 大题,每题 <%=request("bdxs")%> 分)</td>   
        </tr>  
       <%
        for r=1 to request("bdx")
        tid=request("tbdx"&r)
        zt=request("tbdxzt"&r)
        set rsq=conn.execute("select * from type7 where 主题="&zt&" and id="&tid)
       %>
                  <td>   <h><%=r%></h>、<%=rsq("题干")%>  </td>
         <tr>  
                <%
                 for i=1 to 5
                 temp=trim(request("bdxzt"&i))
                 temp="where id= "&temp
                 temp= replace (temp, ","," or id =")  
                 set rst=conn.execute("select * from type6 "&temp)
                 %>
                 <td>   <%=i%>、<%=rst("题干")%>   
          <%  
          if trim(request("bdxcate"&i))=trim(rst("正确答案")) then   
          fncolor="#FF0000"   
          df=request("bdxs")   
          response.write "<font color="&fncolor&">(正确答案:"&rst("正确答案")&"  提交答案:"&trim(request("bdxcate"&i))&"  判题:√   得分:"&df&"分)</font>"  
          response.write "<tr><td>   A、"&rst("选项1")&"   B、"&rst("选项2")&"  C、"&rst("选项3")&"  D、"&rst("选项4")&"  </td></tr>"  
          else  
           fncolor="#0000FF"   
          df=0  
          response.write "<font color="&fncolor&">(正确答案:"&rst("正确答案")&"  提交答案:"&trim(request("bdxcate"&i))&"  判题:╳   得分:"&df&"分)</font>"  
          response.write "<tr><td>   A、"&rst("选项1")&"   B、"&rst("选项2")&"  C、"&rst("选项3")&"  D、"&rst("选项4")&"  </td></tr>"  
         end if   
         next
         zfenbdxs=cint(zfenbdxs)+cint(df)  
  next  %>
         
</td>
</tr>
</table>
++++++++++++++++++++++++
 
搜索更多相关主题的帖子: 选择题 border center 
2011-09-02 09:56
dzt0001
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:蒙面侠
威 望:5
帖 子:1281
专家分:4998
注 册:2005-10-12
得分:20 
代码太多,又没办法测试,看不出所以然。

----我怎能在别人的苦难面前转过脸去----
2011-09-02 13:01



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-348934-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.060067 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved