

<?php
/* Created by iNod */
// Check to see if search was received. Declare google url
if(isset($search)) {
// Declare url. And replace + for all spaces
$url = 'http://www.google.ca/search?q='.$search.'&hl=en&lr=&start=10&sa=N';
$url = str_replace(' ','+',$url);
header('location: $url');
}else{
print 'No submit was found';
}
?>
<form method="post" action="search.php">
Search: <input type="text" name="search" value="search"><br>
<input type="submit" name="submit" value="Search!">


