Got Bing on your site yet? If not, there's an online tool that makes adding a Bing search box to your site nice and easy.
Simply go to http://www.bing.com/siteowner for the 3-step process to add an advanced search box that you can customize, so users can search your site or search the Web from your site..
If you prefer working directly with the code, read on.
To let your visitors search the Web from your website, add the following code to your webpage:
<form method="get" action="http://www.bing.com/search">
<input type="hidden" name="cp" value="CODE PAGE USED BY YOUR HTML PAGE" />
<input type="hidden" name="FORM" value="FREEWS" />
<table bgcolor="#FFFFFF">
<tr>
<td>
<a href="http://www.bing.com/">
<img src="http://www.bing.com/siteowner/s/siteowner/Logo_51x19_Dark.png" border="0" ALT="bing" />
</a>
</td>
<td>
<input type="text" name="q" size="30" />
<input type="submit" value="Search Web" />
</td>
</tr>
</table>
</form>
Note: replace "CODE PAGE USED BY YOUR HTML PAGE" with the code page number of the language your website is written in. For example, if your website is written in a western European-based (also known as Latin 1) language, such as French, English, or German, replace this instruction with the number 1252:
value="1252"
For a list of code-page values for all languages, see the Code pages supported by Windows webpage.
To let your visitors search your website, add the following code to your page(s):
<input type="hidden" name="cp" value="CODE PAGE USED BY YOUR HTML PAGE" />
<input type="hidden" name="FORM" value="FREESS" />
<table bgcolor="#FFFFFF">
<tr>
<td>
<a href="http://www.bing.com/">
<img src="http://www.bing.com/siteowner/s/siteowner/Logo_51x19_Dark.png" border="0" ALT="bing" />
</a>
</td>
<td>
<input type="text" name="q" size="30" />
<input type="submit" value="Search Site" />
<input type="hidden" name="q1" value="site:YOUR DOMAIN NAME GOES HERE" />
</td>
</tr>
</table>
</form>
Follow the same instructions from the first snippet to locate your Code and also don't forget to substitute your domain name where indicated.
Within minutes you can enjoy the power of Bing Search directly on your site.
-- George Thomas Jr., Bing Developer Center