If you are design any website it important to add search functionality on your site. Visitor or user essay find the content or exact data/page on your site. So add search function in your site and make your site user friendly.
Allowing visitors to search your site is very important. We are so used to being able to search for what we need that when we come across a website with no search function – particularly a large site – we are likely to find it extremely frustrating. A good search function can be used by your visitors as another method of navigation on your site. Adding search functionality should therefore be a priority.
In this articles we are focus on “How to add search function to your website”.
There is no feature in HTML that will perform the search. But you do have alternative options:
- You can integrate 3rd-party search engines like Google into your site.
- You can upload a CGI page which uses PHP, Perl, or another scripting language to perform the local search for you.
Few people realise this, but you can actually use the major search engines like Google as your site’s search engine, free of charge.
To do this with Google, go to Google Custom Search Engine and complete the online form.
This useful script allows your visitors to search the contents of your site by leveraging the 3 most popular search engines- Google, Yahoo, and MSN. Now your site’s search is truly covered!
following disadvantages for 3rd-party search engines:
- If the search engine decides to discontinue the service, your site search will suddenly fail to work.
- The results page has the search engine’s advertisements and formatting. You have even less control over the output than when using the third party search engine remotely hosted services.
- Limited in functionality
The best method is to store your information in your database and use server scripting like php and MySQL to query the data