Search the web from your site (.asp)

You only need to include the form bellow in your page:
 
searchtheweb.html
<form action="/cgi-bin/search.asp" method=post>
<table border=0 cellpadding=5><tr>
<td align=center bgcolor="#4444FF">
<input size=30 name=zer value="Multi Search"><BR>
<select name="se"><option value="1">Yahoo<option value="2">Altavista<option value="3">Excite<option value="4">Lycos<option value="5">NetFind<option value="6">WebCrawler<option value="7">Hotbot<option value="8">InfoSeek</select>
<input type=submit value="Search">
</td></tr>
</table>
</form>

And you will need to create a file with the content in the table bellow named searchtheweb.asp in the "\cgi-bin" directory. Active Server Pages must be available in the server.
 

searchtheweb.asp
<% AA=request.form("zer")
AA=server.urlencode (AA)
if request.form ("se")="1" then 
response.redirect ("http://search.yahoo.com/bin/search?p="+AA)
else
if request.form ("se")="2" then
response.redirect ("http://altavista.digital.com/cgi-bin/query?q="+AA)
end if
if request.form ("se")="3" then
response.redirect ("http://www.excite.com/search.gw?search="+AA)
end if
if request.form ("se")="4" then
response.redirect ("http://www.lycos.com/cgi-bin/pursuit?query="+AA)
end if
if request.form ("se")="5" then
response.redirect ("http://netfind.aol.com/search.gw?search="+AA)
end if
if request.form ("se")="6" then
response.redirect ("http://webcrawler.com/cgi-bin/WebQuery?search="+AA)
end if
if request.form ("se")="7" then
response.redirect ("http://www.search.hotbot.com/hResult.html?MT="+AA)
end if
if request.form ("se")="8" then
response.redirect ("http://www.infoseek.com/Titles?qt="+AA)
end if
end if
%>
 

AspTutorial.info