How to create a CakePHP search form?

How to create a html form that submits a single keyword to different APIs to search?

  • I want to create a search form that searches in different categories parallely like. Wikipedia, Flickr , Youtube.

  • Answer:

    You want the form on your page to search more than one site such as searching Wikipedia, Flickr, and YouTube, etc. all at once and have the search results come back to a single results page on your site? What if you used AJAX to hit a web service on each of the sites to be searched and then you merged the results together to fit on a single page on your site? If there are no web services available on Wikipedia, Flickr, and YouTube, maybe you could do some web scraping instead of hitting web services. I believe that whether you get your data from a web service, or whether you get your data by scraping it off of an HTML page, it would involve using JavaScript.

2Z3I5SWN3TXRRPXIL2U4XTM5JY at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.