I think, the best way to solve this problem is to use 'SESSION'. Store the result (whether success or failure) in the session as sort of a flash message.
1. Set a session message after your operation in the process page.
2. Then in the redirected page check whether the session message is set or not.
3. If it is set then simply echo that message.
The below code may help you.
$_SESSION['message'] = '';
if (logged_in) {
$_SESSION['message'] = 'Success';
} else {
$_SESSION['message'] = 'Failure';
}
if(isset($_SESSION['message'])){
echo $_SESSION['message'];
}
?>
I hope this will help you.