Connecting Tech Pros Worldwide Help | Site Map

complete address including variables

  #1  
Old July 17th, 2005, 01:52 PM
windandwaves
Guest
 
Posts: n/a
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


  #2  
Old July 17th, 2005, 01:53 PM
\(¯`·..Yttrium ...·´¯\)
Guest
 
Posts: n/a

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 ()


  #3  
Old July 17th, 2005, 01:54 PM
windandwaves
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with scripting to store data on MySQL mideastgirl answers 70 August 5th, 2009 06:16 PM
Automatically generate variables Nate answers 111 September 10th, 2007 09:25 PM
problem while including two scripts... Leszek answers 8 December 29th, 2005 01:55 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM