Google Search help

Discussion in 'HTML & Website Design' started by prilep, Feb 23, 2010.

  1. #1
    Hi,

    After some tweaking i got my google search to work. Im a newbie when it comes to this stuff, but I would like to learn. This is the current code i have:

    					<form action="http://www.google.com/search" method="get">
    						<div id="search_button">
    							<input type="image" src="images/header_search_button.jpg" />
    						</div>
    						<div id="search_txt">
    							<input type="text" name="q" size="31" maxlength="255" value="" />
    						</div>
    						<div id="search_rt">
    						</div>
    						</form>
    HTML:

    Basically what I want now is for it to only search MY site no one elses. Anyone know how to do that with this code?

    - Prilep :)
     
    prilep, Feb 23, 2010 IP
  2. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #2
    I got it working :).

    <input type="hidden" name="sitesearch" value="MYSITE.com" checked />
    Code (markup):
     
    prilep, Feb 23, 2010 IP