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">
<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 />
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
By putting double quotes around a set of words, you are telling Google to consider the exact words in that exact order without any change. Google already uses the order and the fact that the words are together as a very strong signal and will stray from it only for a good reason, so quotes are usually unnecessary.
This topic is now closed. New replies are no longer allowed.