Skip to content

Instantly share code, notes, and snippets.

@ChrisRicca
Created February 12, 2010 15:50
Show Gist options
  • Save ChrisRicca/302670 to your computer and use it in GitHub Desktop.
Save ChrisRicca/302670 to your computer and use it in GitHub Desktop.
Quick and dirty way to add search to a site.
<form action="http://www.google.com/search" method="get">
<div>
<label for="q">Search</label>
<input type="text" name="q" value="" id="q">
<input type="hidden" value="yourdomain.com" name="sitesearch">
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment