title: Search box that searches another site
body: <p>Site A: in development (PHP)
  Site B: <a href="http://www.apprenticesearch.com/" rel="nofollow">http://www.apprenticesearch.com/</a></p>
  
  <p>I want to include an input box on site A; after I type in the query and press Enter, open a new tab to display the search results of B. It would be as if I had typed the search query into B directly. </p>
  
  <p>For example I searched for 'testing', and inspecting the search result from B, I see the following. How would I pass the query from site A to B? </p>
  
  <pre><code>&lt;div id="search"&gt;
     &lt;form action="/Resources/SiteSearch" id="siteSearchForm" method="post"&gt;
        &lt;label for="search-box"&gt;
        SEARCH&lt;/label&gt;
        &lt;div id="search-box-wrapper"&gt;
           &lt;input type="text" id="search-box"&gt;
        &lt;/div&gt;
        &lt;input id="searchText" name="searchText" type="hidden" value="testing"&gt;&lt;input id="siteSearchUrl" name="siteSearchUrl" type="hidden" value="http://yboss.yahooapis.com/ysearch/limitedweb?format=xml&amp;amp;sites=www.apprenticesearch.com&amp;amp;q=testing"&gt;
        &lt;input type="image" src="/userfiles/images/E/buttons/go.png" id="search-button" value="GO" siteurl="www.apprenticesearch.com"&gt;&lt;!-- www.apprenticesearch.com --&gt;
     &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>