我可以理解是一个字符串的拼装过程吗.
如果你的查询用
Select * from table where ...
在用户端,可以用jscript来拼好字符串.
如果用一项,
可以拼成
Select * from table where a=input.value
如果用其它项
可以拼成
Select * from table where b=input.value
可用
if request("b1").count=1 then '若提交
连接库
查询:select b form ku where ziduan=request("d1")
end if
html
<form method="POST" action>
<p><select name="D1" size="1">
<%
开库,查a,循环
%>
<option value="<%=rs("a")%>"><%=rs("a")%></option>
</select><input type="submit" value="Submit" name="B1"></p>
</form>