如何从iframe_1的表单发送帖子数据,以便在iframe_2上显示结果? 像这样:
文件content.php有2个iframe
<iframe id="iframe_1" src="iframe_1.php"></iframe>
<iframe id="iframe_2" src="iframe_2.php"></iframe>
iframe_1.php上的表单准备要发送的帖子数据,
<form name="form1" method="post" action"iframe_2.php>
<input name="Var1" type="text" value="Hello World !!!">
</form>
通过触发iframe_1.php
中的javascript或jquery来提交表单document.forms["form1"].submit();
然后,结果应显示在iframe_2,方法是从iframe_1.php脚本重新加载源文件iframe_2.php。 (或者表格的目标也许可以完成这些工作?)
我想知道如何做到这一点。