Re: [PHP] URL thing

2004-11-03 Thread T.Lensselink
$_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. > > $

RE: [PHP] URL thing

2004-11-03 Thread Zareef Ahmed
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?

Re: [PHP] URL thing

2004-11-03 Thread Jason Wong
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

[PHP] URL thing

2004-11-03 Thread Kevin Javia
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. $PHP_SELF gives only page name. Can any one help me? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsu