简体   繁体   English

iframe中的PHP表单发布不起作用

[英]PHP Form post inside iframe not working

I have a website hosted on abc.com which consists of a simple form 我在abc.com上托管了一个网站,该网站包含一个简单的表格

<form action="./" method="post">
    <div>
        <input type="submit" readonly="true" placeholder="tempemail123" name="getemail" value="Create Temporary Email" />

    </div>
        <div>
          <input type="email" class="form-control disposable-text-field" id="email" placeholder="tempemail123@example.com" readonly="true">
        </div>

    </form>

The above form is working perfectly. 上面的表格运行良好。

And I have another website https://www.xyz.com where I have embedded the above in an iframe with 我还有另一个网站https://www.xyz.com ,我将上述内容嵌入到iframe中,

<iframe src="https://www.abc.com"></iframe>

But this is not working on chrome and firefox browsers. 但这不适用于chrome和firefox浏览器。 (Its working on safari) When I look at the network requests I see a post to https://www.abc.com/ which shows 'cancelled' . (它适用于safari)当我查看网络请求时,会看到https://www.abc.com/上的帖子,显示“ cancelled”。 Is there a reason why this would not work on chrome? 有什么理由不能在chrome上使用吗?

target='_parent'放入表单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM