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>
<td align=right>
<font size=1>
Provide by <A HREF="http://www.submitside.com">Submitside.com</A></font>
</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
%>

This is the form in its actual design (you may customized it).




Google






   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006-2010 All Rights Reserved By CodeDcode.Com : HTML : RSS : TEXT : XML