Google paieškos kodas:
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="31"
maxlength="255" value="" />
<input type="submit" name="submit" value="Google Search" />
<input type="radio" name="sitesearch" value="" />
The Web
<input type="radio" name="sitesearch"
value="askdavetaylor.com" checked /> Ask Dave Taylor<br />
</form>
O, kad rašytų į mysql tai tiesiog tikrink su php submit ir rašyk value į mysql:
if($_GET['submit'])
{
// $_GET['q'] rašom į mysql
}