Use header function like this:
header('Location: login.php');
exit;
But don’t print any html output before calling header function else it will result in an error.
solved how to redirect/dispatch in php? [duplicate]
Use header function like this:
header('Location: login.php');
exit;
But don’t print any html output before calling header function else it will result in an error.
solved how to redirect/dispatch in php? [duplicate]