Copy link to clipboard
Copied
Hi guys,
I am building a networking site for school. Most of the site works. I have one tweak I want to make and cant get it to work. On the landing page the person user has a choice to login or register. On the login he is redirected to Home on failure he is redirected to fail. How can I redirect on the registration. Cant seem to get this to work. It writes the user data from the form to the DB but I cannot get it to redirect to a secure page where it welcomes the new user. Page is built, lets call it welcome.php. Please can anyone tell me where I need to put the code and what the code is?
Thanks.
Owen
Copy link to clipboard
Copied
Put the code as the last thing before exiting the block of php that runs to register someone.
The code would be -
header("Location: http://www.example.com/your_redirect_page.php");
exit();