Add initial query string generation to search.php.