I use PHP, I wanted to know if the user is on a specific page, and they need to log in or register in order to be able to do actions such as commenting or rating, etc. I wanted to return the user to the same page after logging in.
I thought to use the PHP function getand pass the url, I'm not sure if this is the best way to do this.
source
share