ivytony Posted March 11, 2008 Share Posted March 11, 2008 say my currentpage url is: http://www.domain.com/click.php?page=10&action=view I am wondering how to get this full url or the page name (click.php) with the variables page and action. I've tried '$_SERVER["PHP_SELF"]', but it only gives me a page name (/clic.php) without any variables passed. anyone knows ? thanks! Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted March 11, 2008 Share Posted March 11, 2008 $url = $_SERVER['REQUEST_URI']; echo $url; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.