if request("select")=2 then str="select 产品名称 from 产品表 where 品牌='SNOOPY'"
if request("select")=3 then str="select 产品名称 from 产品表 where 品牌='佳露思'"
if request("select")=4 then str="select 产品名称 from 产品表 where 品牌='TYPE_R'"
其中的request("select")应为request("select0")
<%
if request("select0")="" then str="select 产品名称 from 产品表"
if request("select0")=1 then str="select 产品名称 from 产品表"
if request("select")=2 then str="select 产品名称 from 产品表 where 品牌='SNOOPY'"
if request("select")=3 then str="select 产品名称 from 产品表 where 品牌='佳露思'"
if request("select")=4 then str="select 产品名称 from 产品表 where 品牌='TYPE_R'"
if request("select0")=5 then str="select 产品名称 from 产品表 where 品牌='其它'"
set rs1=server.createobject("adodb.recordset")
rs1.open str,conn,0,1
%>
<p>请选择产品</p>
<p> <select name="select1" size="1">
<%
if rs1.bof=false then
while not rs1.eof
%>
<option value="<%=rs1.fields("产品名称")%>"><%=rs1.fields("产品名称")%></option>
<%rs1.movenext
wend
end if
rs1.close
%>
</select>
</p>
<p>
<input type="submit" name="Submit" value="查询">
</p>
</form>