【www.gdgbn.com--word】
...
<%
keyword=split(request.form("textfield")) "用空格将多个关键字分隔,并保存在keyword数组中
str=""
for i=0 to ubound(keyword) "ubound函数获得数组最大下标值,将多个关键字用“+”号连结
if i=ubound(keyword) then
str=str&keyword(i)
else
str=str&keyword(i)&"+"
end if
next
if request.form("select")="搜狐" then "选择“搜狐”
response.redirect("http://search.sohu.com/web?query="&str) "转到搜狐搜索用户关键字的网页
"http://search.sohu.com/web?query=asp+%cb%d1%cb%f7%d2%fd%c7%e6&radiobutton=0
end if
if request.form("select")="新浪" then "选择“新浪”
response.redirect("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="&str) "转到新浪搜索用户关键字的网页
"http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=asp++%cb%d1%cb%f7%d2%fd%c7%e6
end if
if request.form("select")="百度" then "选择“百度”
response.redirect("http://www.baidu.com/s?cl=3&wd="&str) "转到百度搜索用户关键字的网页
end if
%>