日期:2014-05-17 浏览次数:21067 次
sql = "select FlagName from bb where FlagType=3" rs.open sql,conn,1 while not rs.eof N_FlagID=rs("FlagName") rs.movenext wend
<select name=qjtz><option><%=N_FlagID%></option></select>
response.write("<select>") sql = "select FlagName from bb where FlagType=3" rs.open sql,conn,1 while not rs.eof response.write("<option>"&rs("FlagName")&"</option>") rs.movenext wend response.write("</select>")
------解决方案--------------------
<select name=qjtz> <%sql = "select FlagName from bb where FlagType=3" rs.open sql,conn,1 while not rs.eof %> <option><%=rs("FlagName")%></option> <% rs.movenext wend %>