比如我如果用五个表单分别做5个页面的话,他们的SQL是这样写的:
1.num.asp
set rs=server.createobject("adodb.recordset")
sql="SELECT * FROM admin where Gnum like '%"&Gnum&"%'"
rs.open sql,conn,1,1
end if
%>
2.name.asp
set rs=server.createobject("adodb.recordset")
sql="SELECT * FROM admin where name like '%"&name&"%'"
rs.open sql,conn,1,1
end if
%>
3.mail.asp
set rs=server.createobject("adodb.recordset")
sql="SELECT * FROM admin where mail like '%"&mail&"%'"
rs.open sql,conn,1,1
end if
%>
4.mobile.asp
set rs=server.createobject("adodb.recordset")
sql="SELECT * FROM admin where mobile like '%"&mobile&"%'"
rs.open sql,conn,1,1
end if
%>
5.all.asp
set rs=server.createobject("adodb.recordset")
sql="SELECT * FROM admin where Gnum & name & mail & mobile like '%"&keyword&"%'"
rs.open sql,conn,1,1
end if
%>
可是我这样得要5个表单,五个页面来完成,虽然没有什么问题,但是感觉麻烦,所以就想问一下大家,怎么用一个表单提交该怎么做?