very basic, stripped down google search thing
$text="some search string here ";
$text=str_replace(" ","+",trim($text));
$text="http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=" . $text;
echo "<a href=\"javascript:location='$text'\">Search</a>";
mess around with somethin like that 🙂