Search Bar

Hello I have a search bar on my site and I want to make it function
to search my site. Website I want it to search my site not Google.

HTML:

<div id="search"> <input  class="inside_search_website" placeholder="What are you looking for?"  type="text" >
                         <input value="Search" type="submit" class="searchButton">
</div>

Javascript:

<script type="text/javascript">
    document.getElementById('search').onsubmit = function() {
        window.location = 'http://www.google.com/search?q=site:impactograph.com ' + document.getElementById('inside_search_website').value;
        return false;
    }
</script>

Just to clarify, are you wanting to not use google to search your website, but to run your own search engine for your website, with something like this PHP Sphider search engine?

Yeah so like a search engine within a website…like the search bar you would see in product
websites…

That good - I refer you back to Sphider, and things of that nature.

is that still good even though I dont know how to write PHP?
I only know front end mostly…

To the best of my knowledge, there is no front-end that can do what you want here.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.