So on my website I send out emails with links that the user must follow to verify his/her email. If the user clicks the link in the email, I want the user to be taken to a page that thanks him/her for confirming his/her account, and then redirect the user to the login page. How can I do this? I tried using the PHP header function but this doesn’t work because I must send headers to display the “thank you” message, so I can’t use that function. What can I do to get this to work?
Share
You can use a meta refresh to do the redirect after a set period of time. To redirect in 5 seconds, place this code in the
<head>of your web page:You can also do this with an HTTP header:
Or use JavaScript: