Jump to content

output message before page redirection


yobo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.