SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Google Search

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google Search

    hi everyone ..

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


    i used this code
    HTML 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

  2. #2
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Last edited by molona; Nov 3, 2011 at 03:52. Reason: removing faux signature


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •