The best way to solve this problem is to establish a session message after a successful operation on the process page. Then, on the redirected page, check if the session message is established or not. If it is installed, just an echo message. The code below may help you.
$_SESSION['MSG']="Your data is saved"; Header( 'Location: Database.php'); exit; //now in the database.php page write at the top <?php if(isset($_SESSION['MSG'])){ echo $_SESSION['MSG']; } ?>//its very simple,you can also format the message by using different html attributes
source share