FROM:http://topic.csdn.net/t/20030511/10/1767515.html
<select name="">
<option value="">从
数据库
中获得</option>
</select>
这样的语句怎么实现??
1 楼AlexHoo(大师兄)回复于 2003-05-11 10:53:00 得分 10
<select name="">
<% while(rs.next()) { %>
<option value=""><%=rs.getString(0)%></option>
<% } %>
</select>
Top
2 楼landog(landog)回复于 2003-05-11 10:56:43 得分 0
同意楼上Top
3 楼sikuan(冰糖★葫芦★头)回复于 2003-05-11 10:58:35 得分 10
<select name="">
<% while(rs.next()) { %>
<option value="<%=rs.getString(1)%>"><%=rs.getString(1)%></option>
<% }
rs.close();%>
</select>