$_GET["var1"] and $_GET["var2"]
On Wed, 3 Nov 2004 13:43:16 +0530, Kevin Javia <[EMAIL PROTECTED]> wrote:
> How can I get the URL in the address bar in any variable?
>
> If URL is "http://www.mysite.com/page.php?var1=12&var2=hello+world";, I want
> to store it in any variable in my code.
>
> $
Hi,
You may use $_SERVER['REQUEST_URI'];
Zareef ahmed
-Original Message-
From: Kevin Javia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 1:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] URL thing
How can I get the URL in the address bar in any variable?
If URL is "htt
On Wednesday 03 November 2004 08:13, Kevin Javia wrote:
> How can I get the URL in the address bar in any variable?
>
> If URL is "http://www.mysite.com/page.php?var1=12&var2=hello+world";, I want
> to store it in any variable in my code.
print_r($_SERVER) and pick the one most suitable.
--
Jaso
3 matches
Mail list logo