Jump to content

Search using Google with Top Frame


nblax27

Recommended Posts

I want to have a search box on my website that searches the entire internet. However, after submitting the search I want there to be a top frame or banner where I can include the search box again for additional searches and a link back to my website.

 

I have made a form below and replaced what I am not sure about as "...?". 

 

		</form>
<form class="main" name="search" method="get" action="...?">
		<input maxlength="1000" size="50" name="query" value="" title="Search" />
		<input type="submit" value="Search!" style="width:75px;" />


<table class="main"><tr><td><input type="checkbox" name="...?" value="rapidshare.com/files" checked="checked" />rapidshare.com</td><td><input type="checkbox" name="...?" value="megaupload.com/" />megaupload.com</td><td><input type="checkbox" name="...?" value="sendspace.com/file" />sendspace.com</td></tr></table>		

	</form> 

 

If someone were to type the word "test" in the search box and check all three boxes I want the Google search to have...

This as the URL: http://www.google.com/search?q=test+%22rapidshare.com%2Ffiles%22%7C%22megaupload.com%2F%22%7C%224filehosting.com%2Ffile%22%7C%22sendspace.com%2Ffile%22

This in Google's Search Box: test "rapidshare.com/files"|"megaupload.com/"|"4filehosting.com/file"|"sendspace.com/file"

 

However, I still want the user to be on my website in their URL box and there to be a top frame similar to those on traffic exchange websites.

 

I think the action of the form should be a php file but I'm not sure exactly what I should have in the php file. I'm really confused about the name of the check boxes also.  Any clue on how to get started??

Link to comment
https://forums.phpfreaks.com/topic/74392-search-using-google-with-top-frame/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.