欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

进行iframe内的提交的时候 为什么iframe 的 name 和 form的 target要同一个名字 才可以 比如改成 navBoxbaoming1才可以

shiping1 的头像

进行iframe内的提交的时候 为什么iframe 的 name 和 form的 target要换一个名字 才可以 比如改成 navBoxbaoming1才可以

事实上改了之后 还是不行


<form action="/php/zaixianbaomingpop.php" target="navBoxbaoming" method="post" onsubmit="return checkSubmitBaoMing();" name="addcontentbaoming" ><input type="hidden" name="dopost" value="save" /><input type="hidden" name="channelid" value="21" /><input type="hidden" name="typeid" value="35" /><input type="hidden" name="fromurl" value="" />     
     <div style="padding-left:106px;padding-top:171px;width:350px;">
       <table border="0">
       <tr>
       <td width="80"><input style="width:80px;height:22px;border:1px solid #a2a2a2;"  type="text"  name="title" id="title" /></td>
       <td width="95"><span style="width:100px;height:22px;"> </span></td>
       <td width="130"><input style="width:130px;height:22px;padding-left:0px;border:1px solid #a2a2a2;"  type="text"  name="tel" id="tel" /></td>
       </tr>
       </table>
     </div>
    <input type="hidden" name="dede_addonfields" value="xingming,text;sex,text;tel,text;szdq,text;zuauye,text;zuauyexiao,text;postcode,text;qq,text;zuigaoxueli,text;liuyan,multitext;fromurl,text;email,text" >
     <div style="text-align:center;padding-top:19px;_padding-top:17px;width:464px;position:relative;"><input style="cursor:pointer;margin:auto;display:block;width:90px;height:32px;border:none;text-indent:-9999px;background:url(/templets/default/images/popbaomingsubmitbg.png) no-repeat left top" type="submit"  value="确认提交" /><div id="loadingbaoming" style="position:absolute;left:412px;top:18px;"></div>
     </div>
    </form>
    <iframe name="navBoxbaoming" frameborder="0" width="0" height="0" src="" ></iframe>
普通分类: