yobo Posted July 20, 2011 Share Posted July 20, 2011 hey all, I use to have a msg output to the screen to inform the user that there file had been uploaded but i needed to add a bit of code to stop the same data been added to the database trice when the page was refreshed so I added a header redirection to the same page now the msg will not be outputted this is what I have. echo "<br>File $fileName uploaded<br>"; header("Location: http://localhost/php/upload.php"); the above snippet is my code Link to comment https://forums.phpfreaks.com/topic/242418-output-message-before-page-redirection/ Share on other sites More sharing options...
QuickOldCar Posted July 20, 2011 Share Posted July 20, 2011 <?php header("refresh:5;url=http://localhost/php/upload.php"); echo "<br>File $fileName uploaded<br>"; ?> Link to comment https://forums.phpfreaks.com/topic/242418-output-message-before-page-redirection/#findComment-1245090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.