大家进来看看就清楚了,很快就能解决!~马上给分 在线等!~~
类别jxtype数据库:
typeid type fen
20 出售 a
21 出租 b
22 求购 c
23 求租 d
24 null e
25 null f
.. .. ..
程序:
<select name="fen" size="1" class="smallSel" id="select">
<option value="0" selected>所有</option>
<%
dim sel
set rs=server.createobject("adodb.recordset")
sql="select * from jxtype"
rs.open sql,conn,3,2
do while not rs.eof
response.write "<option value='"+CStr(rs("fen"))+"' name=type>"+rs("fen")+"</option>"
rs.movenext
loop
rs.close
%>
</select>
我想打开页面的时候让它分类fen默认为 比如说"f" 现在默认的"所有" 如何判断呢?