First thing you're going to need to do is create a custom form with  
its action attribute set to search.php.  From there, you have two  
different options.  Probably the easiest would be to have search.php  
build the results page blank, but with an AJAX search control (see 
http://code.google.com/apis/ajaxsearch/documentation/index.html#The_Hello_World_of_Google_Search
 
  ).  At the end of the onload handler, instead of calling some string  
literal, you would have the php insert the query that the user  
specified.  Alternatively, probably the faster method would be to set  
up search.php to run the query through the REST side of the API and  
just write the results into the page (see 
http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje 
  ).  If you do this, though, you must remember to include the Google  
branding near the results.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
[EMAIL PROTECTED]

Unless otherwise noted, any price quotes contained within this  
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights  
Wesleyan Church!




On Nov 20, 2008, at 12:34 AM, mushi wrote:

>
> Hi
> i want to put Google Search box on the Index page on the right top
> corner of my website, but i don't want to show the search result on
> the same page(i.e. index). Instead i want that when a user enter some
> keyword in the search field the results would be shown on the
> search.php page rather than on the index page.
> waiting for a quick reply
>
> Thanks
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to Google-AJAX-Search-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to