Click to See Complete Forum and Search --> : google search


john_zakaria
11-01-2011, 07:23 AM
hi everyone ..

i want to make search text field in my website to search website data using google


i used this 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="http://oxfaminarabic.org" checked /> only search Ask Dave Taylor<br />
</td></tr></table>
</div>

</form>


but it did not work with me.. it did not give me any data..
at the same time i tried to use the same code with different site and it works correctly

please i need help to solve this issue
Noted that i dont have index.php or index.html page

thanks in advance

Lawrence Fields
11-01-2011, 11:26 AM
Google allows you to make a custom search engine for your website:

http://www.google.com/cse/

Try it out.