473,480 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

complete address including variables

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
2 1402

"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
(¯`·..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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2325
by: lawrence | last post by:
Maybe its late and I'm tired but I don't understand what I'm seeing on the screen. I have this block of code: $choiceMade = $_GET; if ($simpleMode == "y" && $choiceMade == "") {...
7
9532
by: Howard | last post by:
Hi, in one of the recent posts, I saw someone pass two variables of built-in type (int and double), by reference, to a member function of a class. That function then took the addresses of those...
22
2415
by: ypjofficial | last post by:
Hello All, While readling the C and C++ literature i came to know that the OS allocates separate protected memory space for each running program and the program do not interfare into one another's...
35
10736
by: hasho | last post by:
Why is "call by address" faster than "call by value"?
14
1808
by: Vu Pham | last post by:
In order to mark the current address at a given point of the variable block, I use the char dummy as follows : int a; long b; short int c; char dummy; By this way, I can calculate the size...
33
3110
by: baumann.Pan | last post by:
hi all, i want to get the address of buf, which defined as char buf = "abcde"; so can call strsep(address of buf, pointer to token);
4
4871
by: Bob H | last post by:
Hi, I'm aware of the different ways to pass variables between ASP.Net pages. For pages that need to pass a variable, we're using the server.transfer method. For others, we're using...
10
1772
by: ypjofficial | last post by:
Hello All, since the programs' stack is shared among all the function inside the program, I was just doing some R&D to see whether the same stack space is used for the variables inside the...
70
5300
mideastgirl
by: mideastgirl | last post by:
I have recently been working on a website for an honors association, and have a lot of difficulty but have found help from those on this site. I would like to see if I can get some more help on a...
0
7040
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6905
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6908
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4478
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.