You may need to redirect an user to a different page when he/she's not allowed to see the whole page, or after a form submission, to avoid browsers asking to resend form data when hitting the back button.
To do this, you've to call PHP header function, followed by exit(). Adding exit() is very important otherwise code after header() will be still executed.
header("Location: index.php?page=home");
exit();