Search Box

Discussion in 'HTML & Website Design' started by ultimategp, Sep 20, 2006.

  1. #1
    Hi on my site www.ugplay.com on the left i have a search box but i would like to embed it with google search but without changeing everything...is there a way i can do that? and am i allowed to? please let me know thanks!
     
    ultimategp, Sep 20, 2006 IP
  2. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #2
    Do you mean you want a search box that searches both your site and Google? I don't believe you can do that without custom coding. The closest thing is to use Google's Search Box which gives your visitors the option to search EITHER your site or Google, but not both.
     
    sketch, Sep 20, 2006 IP
  3. vinxxv

    vinxxv Well-Known Member

    Messages:
    506
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    118
    #3
    i hope this helps... i actually used this code on one of my clients, modified it a bit...

    i forgot the site where i found this code (but thanks to that site).

    maybe you can add CSS style to the text box and submit button so it would fit better on your site.


    <form method="get" action="http://www.google.com/search">
    <table border="0" cellpadding="0">
    <tr>
    <td>
    <input name="q" size="25" maxlength="255" value="" type="text">
    <input value="Google Search" type="submit">
    </td>
    </tr>
    <tr>
    <td>
    <input name="sitesearch" value="YOUR_WEBSITE_URL_HERE"checked="checked" type="checkbox"> only search within YOUR_WEBSITE_URL_HERE
    </td>
    </tr>
    </table>
    </form>


    is this what you needed?
     
    vinxxv, Sep 20, 2006 IP
  4. The_FoX

    The_FoX Peon

    Messages:
    666
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if ur looking to utilize google search box to search and show up this search box of urs - its not possible, u have to take the google search box.
     
    The_FoX, Sep 20, 2006 IP
  5. The_FoX

    The_FoX Peon

    Messages:
    666
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #5


    Huh!!!! this does the google search - and isnt this just a search box? i mean is there a coding into it? not really.
     
    The_FoX, Sep 20, 2006 IP
  6. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Pat Gael, Sep 20, 2006 IP
  7. vinxxv

    vinxxv Well-Known Member

    Messages:
    506
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    118
    #7
    yes it does. i made a sample for it (i hope i'm not violating any rules here)..

    http://vinxxv.inc.md/test_google_search.htm

    if you click on the check box, it would only search within the DP forums if not, it would search the entire web.

    Thanks
     
    vinxxv, Sep 20, 2006 IP