Re: how get current URL ?? HTTP_REFERRER brings prevous only

From: Date: Mon, 14 Aug 2000 18:14:43 +0000
Subject: Re: how get current URL ?? HTTP_REFERRER brings prevous only
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11658@lists.php.net to get a copy of this message
Use $PHP_SELF (for the name of the current page: "myscripT.php"), and $QUERY_STRING (for the query string: "first=john&last=Doe". Helmut Ott wrote: > I need to refernece the current URL incl. querystring (e.g. Ê2Ïï_5v—1 > ÎèÉ�4http://mypage.com/myscripT.php?first=john&last=Doe > If I use $HTTP_REFERER I only get the URL of the page I came from. What is the proper Variable > for the CURRENT url? > (I read the manual over and over, but I only found it could be done using 3 variables combined > - but I think there should be exist a single Variable doing the trick?!) > > Thanks for a tip. > > Helmut

« previous php.general (#11658) next »