关于过滤查看信息 在线等
在一个行业信息页面
我想通过下拉框选择省份(province)来过滤查看这一行业的信息
选择省份点击查看执行
searchc.asp
<%
c_type=request("c_type")
province=request("province")
response.redirect("r_user_search_c.asp?t=2&c_type="&c_type&"&province="&province)
%>
在r_user_search_c.asp中
if t=1 then
c_type=request("c_type")
sql="select ID,username,c_name,real_name,r_date,last_date from r_user where c_type='"&c_type&"' order by ID desc"
else if t=2 then
c_type=request("c_type")
province=request("province")
sql="select ID,username,c_name,real_name,r_date,last_date from r_user where province='"&province&"' order by ID desc"
end if
end if
t=1时显示这一行业的信息
t=2时显示过滤信息
显示页面地址总是显示为r_user_search_c.asp?t=2&c_type=&province=北京,而且选出的是各个行业省份是北京的信息
哪里有错误啊?