使用按钮在iframe外部提交iframe表单
P粉316110779
P粉316110779 2023-09-04 10:44:17
[HTML讨论组]

我有一个contactus.html文件,其中包含一个iframe:<iframe name="myframe" id="frame1" src="contact_inputs.php"></iframe>,其中只包含contact_inputs.php中的三个输入框。

我想要通过iframe外部的按钮将iframe文件中的表单提交到php_form.php。

联系人.html

<iframe name="myframe" id="frame1" src="contact_inputs.php"></iframe>
   <form action="php_form.php" method="post">
   <input type="submit" name="DoIt" value="submit">
   </form>

contact_inputs.php

<form>

<input type="" name="cn">
<input type="" name="ex">
<input type="" name="cr">

</form>
P粉316110779
P粉316110779

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号