Question:

HTML for a multi-site, radio-optioned search engine?

by  |  earlier

0 LIKES UnLike

How do I implement a search engine on my website that will insert (and submit) whatever is entered in the textarea into another site's search engine --- even if it means they leave my site.

Google toolbar allows for this with just one touch.

working example @ http://www.thefreedictionary.com/

my site: http://poetryblogrankings.com/showcase

 Tags:

   Report

2 ANSWERS


  1. On the site (or sites) you want to allow your users to search with (such as Google), do a manual search by entering words in the search form. Then, look at the URL of the page that has the search results. The words you searched for will be inside the URL. Set up a form on your own website and use a programming language like JavaScript or PHP to build the same URL and redirect your user there when they push the submit button, substituting your users' search terms from your form for the words you searched for. Take careful note of how the target search engine represents special characters such as spaces and quotation marks. You will have to translate what your user enters to the format the search engine uses before doing the redirection. You'll also have to read the radio button setting of your form in the script you write to determine which search engine to redirect to.

    Or perhaps you can find such a script that someone else has written already, and add it to your website.


  2. Ever noticed that some site have a thing where you can search there site, but it switches to Google? Here is the place on Google to get that.

    http://www.google.com/sitesearch/

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.