数据接收不完整,请求高手指点!
数据发送没有问题,就是接收上没了差错,接收不到小题以及答案!求高手指点!
此段为数据内容
------------------------------
<!-- 不定项选择题 -->
<%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>
++++++++++++++++++++++++