急啊!!!帮小的看看代码为什么不对啊???
本帖最后由 dong11wei 于 2013-01-10 10:54:38 编辑
在A页面上有几个文本框或者列表框,现在想把A页面中的这个文本框,列表框内容,通过一个按钮实现写入数据库的功能!现在问题来了,在B页面中编写了写库代码,但是写入第一条后,写第二条,就话跳到自己编写的一个IF判断else中去??代码如下:
A页面:
<table height="164" border=1 cellpadding=0 cellspacing=0 class=MsoNormalTable
style='width:451.95pt;border-collapse:collapse;border:none;mso-border-alt:
solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid windowtext;mso-border-insidev:.5pt solid windowtext'>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td valign=top style='width:239.3pt;border:solid windowtext 1.0pt;
mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='line-height:normal'><span style='font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;color:red'>
卡号:<input type="text" name="textname36" size="20" value="<%=rs("卡号")%>"></span><span
lang=EN-US style='color:red'><o:p></o:p></span></p> </td>
<td valign=top style='width:212.65pt;border:solid windowtext 1.0pt;
border-left:none;mso-border-left-alt:solid windowtext .5pt;mso-border-alt:
solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='line-height:normal'><span style='font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;color:red'>
催收日期:<input type="text" name="textname37" size="15" value="<%=formatdatetime(now,1)%>"></span><span
lang=EN-US style='color:red'><o:p></o:p></span></p> </td>
</tr>
<tr style='mso-yfti-irow:1'>
<td style='width:239.3pt;border:solid windowtext 1.0pt;
border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='line-height:normal'><span style='font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;color:red'>
催收方式:<select name="cars1">
<option value="">请选择</option>
<option value="电话催收">电话催收</option>
<option value="上门催收">上门催收</option>
</select></span><span
lang=EN-US style='color:red'><o:p></o:p></span></p> </td>
<td valign=top style='width:212.65pt;border-top:none;border-left:
none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
mso-border-alt:solid windowtext .5pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='line-height:normal'><span style=