Connecting Tech Pros Worldwide Forums | Help | Site Map

complete address including variables

windandwaves
Guest
 
Posts: n/a
#1: Jul 17 '05
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



\(¯`·..Yttrium ...·´¯\)
Guest
 
Posts: n/a
#2: Jul 17 '05

re: complete address including variables



"windandwaves" <winandwaves@coldmail.com> a écrit dans le message de news:
4270284c$1@clear.net.nz...[color=blue]
> 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[/color]

HI
You must add $_SERVER['QUERY_STRING'] to your URL
Or use http_build_query ()


windandwaves
Guest
 
Posts: n/a
#3: Jul 17 '05

re: complete address including variables


(¯`·..Yttrium ...·´¯) wrote:[color=blue]
> "windandwaves" <winandwaves@coldmail.com> a écrit dans le message de
> news: 4270284c$1@clear.net.nz...[color=green]
>> 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[/color]
>
> HI
> You must add $_SERVER['QUERY_STRING'] to your URL
> Or use http_build_query ()[/color]

thanks cool!


Closed Thread