I have an issue with php header location. I am trying to redirecting the page after a successful execution. But it is not redirecting. Also I have seo friendly url and I am not sure if it has anything to do with that as the problem started after that.
Code:
if (empty($_POST) === false && empty($errors) === true) {
change_password($session_user_id, $_POST['password']);
header('Location: user.php?p=changepassword&success');
}
Above, change+password function works but the header does not. I also tried redirecting it to seo friendly url but still no luck. I have tested Header redirection on another test page, it works there fine. I have only problem on this password change and edit profile page.
Any clue why or how to find whats causing the issue?
Regards