2013-06-04 39 views
0

我正在使用内嵌在payin.php中的iFrame mail-data.php页面,其中输入了邮件的用户详细信息。如何将表单从iFrame发布到父级

  1. 可以根据从数据库中检索ID(iFrame的)我通过从payin.php(原页)页面数据mail-data.php

  2. 如何将mail-data.php(iFrame)的数据发布到另一页mail.php以执行mail函数?如果是的话,我怎样才能将数据从普通页面传递到iFrame页面?

我尝试使用表单操作中的iFrame网页,mail.php,但我得到了它显示的错误。

Not Acceptable 

An appropriate representation of the requested resource /radical/mail-data.php could not be found on this server. 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 

可能是什么问题?

+0

是从同一个域中父页面的iframe页面的工作? –

回答

0

此代码示例演示了如何使用表单元素的target属性通过iframe发送表单要求:

<iframe src="about:blank" name="mail-data" /> 

<form action="mail-data.php" method="post" target="mail-data"> 
    <!-- form fields !--> 
</form> 
0

我刚过值与HREF的帮助下,邮件数据的ID .php然后再使用get方法..它retreived的ID完全正常

感谢

相关问题