Google Custom Search

mpg187

Up-and-Coming Sensation
Joined
Apr 5, 2010
Messages
483
Reaction score
0
FP$
6
On my homepage (http://operation420.net/) I have a search (also can be found on http://operation420.net/search)

Say if I search for "test" I get a URL like this:
http://operation420.net/search?cx=partner-pub-3003393768631515%3Ax62wrv-ofyc&cof=FORID%3A10&ie=ISO-8859-1&q=test&sa=Search

Is there a way I can make a link appear on that page that will go to:
http://www.google.ca/#hl=en&source=hp&q ... b300c6b795 (Normal Google Search for "test")
and
http://images.google.ca/images?hl=en&q= ... a=N&tab=wi (Google image search for "test")

and if I type in something different than test (say test2) then the links go to a search for "test 2" instead of "Test"

Also another problem is on http://operation420.net/search?cx=partner-pub-3003393768631515%3Ax62wrv-ofyc&cof=FORID%3A10&ie=ISO-8859-1&q=test&sa=Search the search box is blank, is there a way I can make it say "Test" in the box like on a real Google search so like for example if I search for "test" then wanna search for "Test 2" instead of re typing "Test" I can just add a 2 at the end of the search...
 
*Sigh* Umm...

lets see if i can't help
Yes, you can make link images on your search page that can then take and submit to google and google images... use this code

for normal search
Code:
<a href="http://www.google.ca/webhp?hl=en#hl=en&q=<?php echo $_GET['q']; ?>" target="_blank">Google</a>

images
Code:
<a href="http://images.google.ca/images?hl=en&q=<?php echo $_GET['q']; ?>" target="_blank">Images</a>

now.. umm.. can you past the code for that search thing? I don't know it off the top of my head but there is an easy way to do what you want with the search bar.
 
Back
Top Bottom