By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,405 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,405 IT Pros & Developers. It's quick & easy.

complete address including variables

P: 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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"windandwaves" <wi*********@coldmail.com> a écrit dans le message de news:
42********@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 ()
Jul 17 '05 #2

P: n/a
(¯`·..Yttrium ...·´¯) wrote:
"windandwaves" <wi*********@coldmail.com> a écrit dans le message de
news: 42********@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!
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.