网站A: 正在开发中 (PHP) 网站B: http://www.apprenticesearch.com/
我想在网站A上添加一个输入框; 在我键入查询并按下Enter后,打开一个新的选项卡来显示B的搜索结果。这就好像我直接在B中键入了搜索查询一样。
例如,我搜索了“测试”,并检查了B的搜索结果,我看到以下内容。我该怎么把查询从网站A传递给B?
<div id="search">
<form action="/Resources/SiteSearch" id="siteSearchForm" method="post">
<label for="search-box">
SEARCH</label>
<div id="search-box-wrapper">
<input type="text" id="search-box">
</div>
<input id="searchText" name="searchText" type="hidden" value="testing"><input id="siteSearchUrl" name="siteSearchUrl" type="hidden" value="http://yboss.yahooapis.com/ysearch/limitedweb?format=xml&sites=www.apprenticesearch.com&q=testing">
<input type="image" src="/userfiles/images/E/buttons/go.png" id="search-button" value="GO" siteurl="www.apprenticesearch.com"><!-- www.apprenticesearch.com -->
</form>
</div>