This is a discussion on complete address including variables within the PHP Language forums, part of the PHP Programming Forums category; Hi Folk Is it possible to get the complete address in the address bar? "http://".$_SERVER['HTTP_HOST'].$HTTP_SERVER_VARS[&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi Folk
Is it possible to get the complete address in the address bar? "http://".$_SERVER['HTTP_HOST'].$HTTP_SERVER_VARS["SCRIPT_NAME"]; will give me the location, but not the variables after the ? Is it possible to add this? Cheers - Nicolaas |
|
|||
|
"windandwaves" <winandwaves@coldmail.com> a écrit dans le message de news: 4270284c$1@clear.net.nz... > Hi Folk > > Is it possible to get the complete address in the address bar? > > "http://".$_SERVER['HTTP_HOST'].$HTTP_SERVER_VARS["SCRIPT_NAME"]; > > will give me the location, but not the variables after the ? > > Is it possible to add this? > > Cheers > > - Nicolaas HI You must add $_SERVER['QUERY_STRING'] to your URL Or use http_build_query () |
|
|||
|
(¯`·..Yttrium ...·´¯) wrote:
> "windandwaves" <winandwaves@coldmail.com> a écrit dans le message de > news: 4270284c$1@clear.net.nz... >> Hi Folk >> >> Is it possible to get the complete address in the address bar? >> >> "http://".$_SERVER['HTTP_HOST'].$HTTP_SERVER_VARS["SCRIPT_NAME"]; >> >> will give me the location, but not the variables after the ? >> >> Is it possible to add this? >> >> Cheers >> >> - Nicolaas > > HI > You must add $_SERVER['QUERY_STRING'] to your URL > Or use http_build_query () thanks cool! |