I have a simple question but yet i don\'t know. I would like to display message first before redirect to other page, but my code just directly redirect the page without disp
You can use header refresh. It will wait for specified time before redirecting. You can display your message then.
header( "refresh:5; url=login.php" ); //wait for 5 seconds before redirecting