Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的页面包含 div (class=result) 所以 div(result) 包含另一个 div (class=update) div(update) 包含插入表单当数据插入另一个页面 (succed.php) 时在 div(update) 中打开并使用 $ _POST['compet'] value 如何在 succed.php 打开并接收 $_POST['compet'] 后让 div(result) 刷新
对不起,我的英语不好
我自己用ajax解决了这个问题
<script type="text/javascript"> $(document).ready( function (){ $.ajax({ url: 'insert.php', type: 'POST', data: { compet: $('#compet').val() }, success: function(data){ $(".myresult").html(data); } }) }) </script>