0

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.

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by manchurianCEO
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.