How do I redirect users after they have either registered or login from either login page or register page to the main page
I tried using the header func(location:) but when I try it the page says the url cannot be found 404 error
How do I redirect users after they have either registered or login from either login page or register page to the main page
I tried using the header func(location:) but when I try it the page says the url cannot be found 404 error
2
Answers
I redirect users by echoing a script
If you are getting ‘url cannot be found 404 error’, there might be an error in your code. If your home page url is
home.php
, you can use the header function asheader("Location:home.php");