[PHP] Google Search For Your Site 11-16-2011, 06:07 PM
#1
This is a code of which i have used many times in my site to be honest ,The best and most acurate source code
you could possibly use is google search most reliable,
The Above code is a Very easy and very basic google search of which you may add to your site
you DO have to change two things
1). Change the value of the site search to your url (where i put `YOUR WEBSITE URL GOES HERE`)
2). also in my google search codes i like to give the searchers a option of searching only your website
or going out of the site to find information about the search on different sites.
So where i put `only search My Url` You should really change the My Url To your real website address
Also the code above will open the google search on the searchers current window
therfore if you would like the searchers to open a new tab upon the search then
replace the top line with this code
Thanks I hope you use this search scripts as it is the best
you could most prob find it on google but only takes a few mins to write so i did for you guys
you could possibly use is google search most reliable,
Code:
<form method="get" action="http://www.google.com/search">
<div style="border:1px solid black;padding:4px;width:20em;">
<table border="0" cellpadding="0">
<tr><td>
<input type="text" name="q" size="25"
maxlength="255" value="" />
<input type="submit" value="Google Search" /></td></tr>
<tr><td align="center" style="font-size:75%">
<input type="checkbox" name="sitesearch"
value="YOUR WEBSITE URL GOES HERE" checked /> only search My Url<br />
<br/>This Google Script Was Coded By Peggy At www.Hackcommunity.com
</td></tr></table>
</div>
</form>The Above code is a Very easy and very basic google search of which you may add to your site
you DO have to change two things
1). Change the value of the site search to your url (where i put `YOUR WEBSITE URL GOES HERE`)
2). also in my google search codes i like to give the searchers a option of searching only your website
or going out of the site to find information about the search on different sites.
So where i put `only search My Url` You should really change the My Url To your real website address
Also the code above will open the google search on the searchers current window
therfore if you would like the searchers to open a new tab upon the search then
replace the top line with this code
Code:
<form method="get" action="http://www.google.com/search" target="_blank">Thanks I hope you use this search scripts as it is the best

you could most prob find it on google but only takes a few mins to write so i did for you guys

<?php echo "Very inactive at this current moment in time"; ?>
![[Image: Z8KDe.png]](http://i.imgur.com/Z8KDe.png)
![[Image: Z8KDe.png]](http://i.imgur.com/Z8KDe.png)




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)