Hi
After a html form is dent a php processes the mail and if successful the mails is sent and a message tell the sender all is ok.
I want this message to appear but redirect after, say 5 second, to the page they came from (with the form) which is 1 page back.
I have this code, just under start <?php. It redirects immediately to the index page, with no message that the mail was sent. I think this is a little confusing for the sender.
Is there a way to do this?
header("Location: http://" . $_SERVER['HTTP_HOST']
. rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
. "/" . $relative_url);