At 4:26 PM -0600 2/22/07, Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote:
Hey - -

I must be missing something, but in a URL such as:

  diddly.com?id=fred&total=goof

$_SERVER['PHP-SELF'] gives me the diddley.com part.

I want to capture the whole URL. The documentation makes it seem like $_SERVER['REQUEST_URI'] is supposed to do that, but I get an "Undefined Index" error.

Do I have to enable this somehow? I realize that I could recreate the rest of the URL from $_GET's, but I'd rather not if I don't have to.

PHP 5.1

Ken


Ken:

Print out these three and you'll see your problem.

$_SERVER['SERVER_NAME']
$_SERVER['QUERY_STRING']
$_SERVER['REQUEST_URI']

hth's

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to