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? Quote 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']; Quote 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! Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.