使用PHP和MySQL。我有2个网站,并且希望在第二个网站的iframe中的第一个网站的页面上显示内容。在第一个网站的页面中,它需要通过表单提交POST变量。如何将POST变量发送到iframe?如何在另一个网站的iframe中显示需要POST变量的一个网页的内容?
我的第二个网站的网页的概念是这样的:
<html>
<body>
<form method="post" action="iframe1">
<select name="choice">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</form>
<iframe name="iframe1" src="first_website.com/page1.php?????????></iframe>
</body>
</html>
如何让iframe中显示了使用选择变量页面的内容?
为什么不能你使用AJAX? – leftclickben 2013-02-09 04:47:30