How to refresh a php page on form submit?
This question already has an answer here:
You may redirect user to current file. After:
$updateQuery->execute();
Add:
header("Location: yourfile.php");
//header("Location: ".basename(__FILE__, '.php')); Might work too
This will redirect user to this file after executing query.
// REFRESH PAGE
echo "<meta http-equiv='refresh' content='0'>";
链接地址: http://www.djcxy.com/p/34712.html
上一篇: 如何在表单提交后刷新页面?
下一篇: 如何刷新表单提交的PHP页面?