obay Posted September 4, 2007 Share Posted September 4, 2007 How do I get URL of current page including the GET variables? e.g. how do i get: http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 since $_SERVER[php_SELF] returns only: http://www.phpfreaks.com/forums/index.php help? Link to comment https://forums.phpfreaks.com/topic/67860-solved-how-do-i-get-url-of-current-page-including-the-get-variables/ Share on other sites More sharing options...
vbnullchar Posted September 4, 2007 Share Posted September 4, 2007 $_SERVER['QUERY_STRING']; Link to comment https://forums.phpfreaks.com/topic/67860-solved-how-do-i-get-url-of-current-page-including-the-get-variables/#findComment-341119 Share on other sites More sharing options...
obay Posted September 4, 2007 Author Share Posted September 4, 2007 amazing! thanks!! it returned the variables.. anyway, to get the whole URL including the variables, this worked: $_SERVER[REQUEST_URI]; thanks! Link to comment https://forums.phpfreaks.com/topic/67860-solved-how-do-i-get-url-of-current-page-including-the-get-variables/#findComment-341120 Share on other sites More sharing options...
vbnullchar Posted September 4, 2007 Share Posted September 4, 2007 np Link to comment https://forums.phpfreaks.com/topic/67860-solved-how-do-i-get-url-of-current-page-including-the-get-variables/#findComment-341121 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.