asp复选框提交表单查询

来源:百度知道 编辑:UC知道 时间:2024/05/30 13:57:17
我想要实现的功能是:
有多个复选框条件,当点击复选框时可以在当页上显示符合条件的记录条数!

title=request("title")
type1=request("type123")
content=request("content")
sqls="where id>0"
if title<>"" then sqls=sqls&" and title123 like '%"&title&"%' "
if type1<>"" then sqls=sqls&" and type1 like '%"&type1&"%' "
if content<>"" then sqls=sqls&" and content35 like '%"&content&"%' "
sql="select * from news_info "&sqls&" order by ID asc"

字段名根据自己的网站写