有三个文本输入框1,2,3
<%
set rs=Server.CreateObject("ADODB.Recordset")
sql = "select * from commerce where 0 = 0"
if trim(request("1"))<>"" then sql = sql&"and 1 like '%"&request("1")&"%'"
if trim(request("2"))<>"" then sql = sql&"and 2 like '%"&request("2")&"%'"
if trim(request("3"))<>"" then sql = sql&"and 3 like '%"&request("3")&"%'"
rs.open sql,conn,1,1
%>