Website search bar

TheTech

Member
Reaction score
0
Location
Perth Australia
Hi guys, I have recently added a search bar to my website (www.computeradviser.co.uk), the problem is that when I search for something it takes me to the google home page without any search results

Code:
<form id="searchform" action="http://www.google.com/search" method="get">

<div>
<h2>Site Search</h2>
<input type="hidden" value="www.computeradviser.co.uk" name="sitesearch"/>
<input id="s" size="15" type="text" value="Search this site" alt="search"/>
<input id="x" type="submit" title="Search computeradviser.co.uk" value="Search">
</div>
</form>


any help would be gratefull

Matt
 
Two things I've noticed off the bat:

1) There's no name attribute for your search box
2) I believe (not 100% though) that the text box's name needs to be Q not S (not that it matters completely, since there's no name attribute yet anyway...)
 
Back
Top