The basic logic required here is to be able to manipulate one of the variables which the Google search engine handles , called as sitesearch. Setthis variable to a null value and you're searching the entire World Wide Web, But if you specify or set its domain it will function as if you had typed in the Google special notation site:domain.
You will just need an input textfield and a corresponding submit button.
HTML Code:
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="31"
maxlength="255" value="" />
<input type="submit" value="Google Search" />
<input type="radio" name="sitesearch" value="" />
The Web
<input type="radio" name="sitesearch"
value="sitename.com" checked /> Ask Dave Taylor<br />
</form>
Bookmarks