This will wait for 5 seconds before redirecting it to a new page..
<?php header("Refresh: 5;url=http://www.yourdestination.com/"); ?>
echo "You will now be redirected to a new page, after 5 seconds.";
Place after you have done all the processing (insert,send or whatever u wish to do)..