Page 1 of 1

redirection and current page

Posted: Fri Jun 02, 2006 10:59 pm
by Milan
i have this

Code: Select all

$MM_redirectLoginSuccess = "index2.php?lgdin=ok";
How can i replace index2.php with current page? What i am trying to do is alow user to login from any page on the website and then be retuned to the same page and not be thrown back to index.

thanks!

$_SERVER['PHP_SELF']

Posted: Sat Jun 03, 2006 2:56 am
by phpmash
I think this is enough for your solution
$MM_redirectLoginSuccess = $_SERVER['PHP_SELF']."?lgdin=ok";
Keep in touch
:roll:

Posted: Sat Jun 03, 2006 3:31 am
by Milan
did the job!
thanks!