SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Google Search

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    0 Post(s)
    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="">
    <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="" 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

  2. #2
    SitePoint Member
    Join Date
    Nov 2011
    0 Post(s)
    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


Posting Permissions

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