搜索框将输入发送到新页面上的iframe url


Search box sends input to a iframe url on a new page

我想有一个搜索框,其中一个人输入一个数字,窗体打开一个新的页面,其中有一个iframe和iframe的url是http://othersite.com/results.php?id=numbersinputfromsearchbox

这可能吗?我使用wordpress与php/mysql/apache/linux,如果这有助于你回答我。谢谢! !

<form action="http://othersite.com/results.php?id=numbersblahblah" method="post" target="_blank">
    <!-- form fields here -->
    <input type="submit" value="Search" />
</form>