最简单的情况:
if ($_POST) { // Execute pre (such as database updates) here. // Redirect to this page. header("Location: " . $_SERVER['REQUEST_URI']); exit();}使用
REQUEST_URI。请勿
PHP_SELF在大多数CMS系统和框架中
PHP_SELF使用
/index.php。

最简单的情况:
if ($_POST) { // Execute pre (such as database updates) here. // Redirect to this page. header("Location: " . $_SERVER['REQUEST_URI']); exit();}使用
REQUEST_URI。请勿
PHP_SELF在大多数CMS系统和框架中
PHP_SELF使用
/index.php。