超级表单

来源:百度知道 编辑:UC知道 时间:2024/06/14 19:46:23
在google的首页,你可以看到搜索的提交表单上有两个提交按钮,一个是搜索,另一个是手气不错,
这中双向提交的表单要怎么做到?还有的站点使用的三向提交的表单,这些要怎么实现!?

这个叫超级表单么,呵呵,试了下,代码如下

<form action="?action=panduan" method="post">
<input type="text" name="test" />
<input type="submit" name="sousuo" value="搜索" />
<input type="submit" name="sousuo" value="手气不错" />
</form>
<%
action=request("action")
test=request("test")
sousuo=request("sousuo")
if action="panduan" then
if sousuo="搜索" then
response.Write("1")
end if
if sousuo="手气不错" then
response.Write("2")
end if
end if
%>

他不是在本页判断的,是在跳转页面里判断哪个单选按钮被选中就连接相应的页面