New course! Every coder should learn Generative AI!
Try a free lesson0
PHP Redirect
How to redirect to the requested page after login in php?
1 Answer
+ 1
Aayush Deep
Use this :
header('Location: '.$newURL);
Pass your home page link in this function