android6011 Posted April 14, 2008 Share Posted April 14, 2008 Is there a way to put a full url like http://www.domain.com/hello/welcome.php?message=1 into a variable? Link to comment https://forums.phpfreaks.com/topic/100996-get-the-full-page-url-with-url-variables/ Share on other sites More sharing options...
discomatt Posted April 14, 2008 Share Posted April 14, 2008 Check out PHP's $_SERVER predefined variables http://ca3.php.net/manual/en/reserved.variables.php#reserved.variables.server Link to comment https://forums.phpfreaks.com/topic/100996-get-the-full-page-url-with-url-variables/#findComment-516472 Share on other sites More sharing options...
android6011 Posted April 14, 2008 Author Share Posted April 14, 2008 so i can do $urlp1 = $_SERVER['PHP_SELF']; $urlp2 = $_SERVER['argv']; but how do i list all of $urlp2 ? then make <a href=$urlp1$urlp2>link</a> ? Link to comment https://forums.phpfreaks.com/topic/100996-get-the-full-page-url-with-url-variables/#findComment-517199 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.