I tried to put a google search bar in a website. First time I pasted the whole code within the <div id="search_bar"> </div> and it was all smooth. However I want to control it from a php file.

I tried to include it through .php (files are already .php )
<?php include("PHP/google_search_bar.php"); ?>

but now the search bar will not show. It only shows the word "Loading" where the search bar used to appear. I can't click on it nor shows any input field. Just the word Loading.

Help!

*Every file is already php by the way.

Recommended Answers

All 2 Replies

Check this.....It might help you...

thank you, I just want to stick to my original search box. The code provided there has yet a few bugs and apparently each person has solved it their own way. I don't have the energy to tackle it.

I have both query and search bar php files ready. Only need to know what to add to my searchbar.php file so it's fully included in my webpages.

But thank you for your help, I still learned some stuff at that link.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.