how to redirect to the same page in php code example Example: php location same page header("Location: " . "http://" . $_SERVER['HTTP_HOST'] . $location);