![]() |
#2
yms1232010-10-14 16:16
|

<%
aa=cint(request("jhcc"))
for mm = 1 to aa
%>
<tr bgcolor="#efefef" onMouseOver="this.bgColor='#B9D5FF';" onMouseOut="this.bgColor='#efefef';" >
<td width="50" align="center" nowrap><input name="qh" type="text" id="qh" value="<%=request("zb_bh")%>.<%=mm%>" readonly="readonly"></td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="sheng" type="text" id="sheng" value="<%=rs("sheng")%>"></td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="shi" type="text" id="shi" value="<%=rs("shi")%>"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="xian" type="text" id="xian" value="<%=rs("xian")%>"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="dd" type="text" id="dd"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="fyyp" type="text" id="fyyp"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="fyrq" type="text" id="fyrq"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="bz" type="text" id="bz"> </td>
</tr>
<%
next
%>比如我传来的数据值为2,然后他循环出2行tr,然后我提交这2行到某个表中,但是到数据库中就变成1行数据了,我想让他生成2行啊。
aa=cint(request("jhcc"))
for mm = 1 to aa
%>
<tr bgcolor="#efefef" onMouseOver="this.bgColor='#B9D5FF';" onMouseOut="this.bgColor='#efefef';" >
<td width="50" align="center" nowrap><input name="qh" type="text" id="qh" value="<%=request("zb_bh")%>.<%=mm%>" readonly="readonly"></td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="sheng" type="text" id="sheng" value="<%=rs("sheng")%>"></td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="shi" type="text" id="shi" value="<%=rs("shi")%>"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="xian" type="text" id="xian" value="<%=rs("xian")%>"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="dd" type="text" id="dd"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="fyyp" type="text" id="fyyp"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="fyrq" type="text" id="fyrq"> </td>
<td width="142" height="20" align="center" nowrap><label for="sheng"></label>
<input name="bz" type="text" id="bz"> </td>
</tr>
<%
next
%>比如我传来的数据值为2,然后他循环出2行tr,然后我提交这2行到某个表中,但是到数据库中就变成1行数据了,我想让他生成2行啊。
[ 本帖最后由 罗林鹏 于 2010-10-15 10:32 编辑 ]