<?php
#伪Ajax提交实现无刷新提交,保留用户输入内容。
#避免提交表单产生的空白页。
?>
<!-- 处理页返回方式 -->
<?php
echo '<script language="JavaScript" type="text/javascript">parent.showmes(\'资料更新成功!\');</script>';
?>
<!-- 表单页提交方式 -->
<body>
<div style="display:none;"><iframe id="bat" name="bat" scrolling="no" height="0" width="0" frameborder="0"></iframe></div>
<form id="form" action="do_action.php?XXXXX" method="post" target="bat"></form>
<script>
function showmes(mes){
layer.msg(mes);
}
</script>
</body>
Iframe表单提交(伪Ajax)
最新推荐文章于 2022-03-17 20:24:49 发布