ASP according to the conditions specified Baidu, Goolge search

Source: Internet
Author: User



<title>...</title>

<body>
<%
Keyword=split (Request.Form ("TextField")) ' separates multiple keywords with spaces and saves them in keyword array
Str= ""
For the i=0 to UBound (keyword) ' UBound function to get the maximum subscript value of the array, link multiple keywords with a "+" number
If I=ubound (keyword) then
Str=str&keyword (i)
Else
Str=str&keyword (i) & "+"
End If
Next
If Request.Form ("select") = "Sohu" Then ' select ' Sohu '
Response.Redirect ("http://search.sohu.com/web?query=" &str) ' Go to sohu Search User Keyword page
' Http://search.sohu.com/web?query=asp+%cb%d1%cb%f7%d2%fd%c7%e6&radiobutton=0
End If
If Request.Form ("select") = "Sina" Then ' select Sina '
Response.Redirect ("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=" &str) ' Go to Sina Search User Keyword page
' 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") = "Baidu" Then ' select ' Baidu '
Response.Redirect ("http://www.baidu.com/s?cl=3&wd=" &str) ' Go to Baidu Search User Keyword page
End If
%>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.