ASP RS 记录集 如何选定特定列
<tablewidth="752"align="left"cellpadding="0"cellspacing="0"><tralign="center"><tdheig...
<table width="752" align="left" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="23" width="99">书籍编号</td>
<td height="23" width="139">书名</td>
<td height="23" width="73">作者</td>
<td height="23" width="176">出版社</td>
<td height="23" width="98">当前分类</td>
<td height="23" width="90">更改分类</td>
</tr>
<%
while not rs.eof
%>
<tr>
<td align="center"><%=rs(0)%></td>
<td ><%=rs(1)%></td>
<td align="center"><%=rs(2)%></td>
<td align="center"><%=rs(4)%></td>
<td align="center"><%=rs("class_name")%></td>
<td align="center">
<label>
<select name="class_name" id="class_name">
<%
rs1.movefirst
while not rs1.eof
%>
<option value="<%=rs1("class_id")%>"><%=rs1("class_name")%>
</option>
<%
session("book_id")=rs("book_id")
rs1.movenext
wend
%>
</select>
</label>
</td>
<td ><a href="checkalterclass.asp">
确认
</a></td>
</tr>
<%
rs.movenext
wend
rs.close
cn.close
%>
</table>
当点击确认时,如何选定当前列的 book_id ?
我试过了,改成这样<a href="checkalterclass.asp?book_id=你要的ID"> 也不行. 展开
<tr align="center">
<td height="23" width="99">书籍编号</td>
<td height="23" width="139">书名</td>
<td height="23" width="73">作者</td>
<td height="23" width="176">出版社</td>
<td height="23" width="98">当前分类</td>
<td height="23" width="90">更改分类</td>
</tr>
<%
while not rs.eof
%>
<tr>
<td align="center"><%=rs(0)%></td>
<td ><%=rs(1)%></td>
<td align="center"><%=rs(2)%></td>
<td align="center"><%=rs(4)%></td>
<td align="center"><%=rs("class_name")%></td>
<td align="center">
<label>
<select name="class_name" id="class_name">
<%
rs1.movefirst
while not rs1.eof
%>
<option value="<%=rs1("class_id")%>"><%=rs1("class_name")%>
</option>
<%
session("book_id")=rs("book_id")
rs1.movenext
wend
%>
</select>
</label>
</td>
<td ><a href="checkalterclass.asp">
确认
</a></td>
</tr>
<%
rs.movenext
wend
rs.close
cn.close
%>
</table>
当点击确认时,如何选定当前列的 book_id ?
我试过了,改成这样<a href="checkalterclass.asp?book_id=你要的ID"> 也不行. 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询