put a Google search box on your website and enable the searc

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

put a Google search box on your website and enable the searc

Post by Lphp »

put a Google search box on your website and enable search information on your site
if i type inside activities, all inside activities that post on site is show on Google
something like keyword site:mysite

<form action="http://www.google.com.hk/search?" method="post">
<input type="text" id="txtSearchSite" Class="csctxtSearchSite" Width="140px">
<input type="submit" Class="csctxtSearchSite"value="Google" />
</form>

please help
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: put a Google search box on your website and enable the s

Post by social_experiment »

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

Re: put a Google search box on your website and enable the s

Post by Lphp »

do you meant , it do not work
<form action="http://www.google.com.hk/search?hl=af&s ... SearchSite+" method="post">
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: put a Google search box on your website and enable the s

Post by social_experiment »

Lphp wrote:do you meant , it do not work
I actually meant to look for a result among the given search results :)
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

Re: put a Google search box on your website and enable the s

Post by Lphp »

Oh, I did see the link , but still don't understand how to handle it, also, I change the post to get
Post Reply