PHP +从iFrame内部发布HTML表单并重定向父级 [英] PHP + POST an HTML form from inside an iFrame and redirect parent

查看:143
本文介绍了PHP +从iFrame内部发布HTML表单并重定向父级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以做到以下几点:在HTML页面中有一个iFrame。在iFrame内部,我有一个PayPal Pay按钮。点击该按钮后,HTML表单被提交给PayPal,我希望父页面重定向到PayPal,而不仅仅是iFrame。这是可能的吗?

I'm wondering if it's possible to do the following: have an iFrame inside of an HTML page. Inside the iFrame, I have a 'Pay with PayPal' button. When that button is clicked, and thus the HTML form is submitted to PayPal, I want the parent page to redirect to PayPal, rather than just the iFrame. Is this possible?

谢谢!

Thanks!

推荐答案

重新寻找 target =_ top

<form action".." target="_top">
</form>

这篇关于PHP +从iFrame内部发布HTML表单并重定向父级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆