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! Link to comment https://forums.phpfreaks.com/topic/95548-how-to-get-current-page-url/ Share on other sites More sharing options...
pocobueno1388 Posted March 11, 2008 Share Posted March 11, 2008 $url = $_SERVER['REQUEST_URI']; echo $url; Link to comment https://forums.phpfreaks.com/topic/95548-how-to-get-current-page-url/#findComment-489135 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.