esthera
09-23-2004, 02:04 AM
I am using _SERVER['PHP_SELF']; to get the current page name -- How can I get it to also include the querystring at the end and domain at the beginning?
|
Click to See Complete Forum and Search --> : get current page querystring esthera 09-23-2004, 02:04 AM I am using _SERVER['PHP_SELF']; to get the current page name -- How can I get it to also include the querystring at the end and domain at the beginning? shimon 09-23-2004, 04:49 AM $_SERVER["REQUEST_URI"] should have that. The best way to find these out is to call phpinfo() (http://www.php.net/phpinfo) and see which of the entries under 'PHP Variables' (down at the bottom there) suit your needs :) pyro 09-23-2004, 07:43 AM You can use $_SERVER['QUERY_STRING'] to get the query string, as well. Hellspire 09-23-2004, 08:47 AM In the future please refer to this part of PHP's documentation for any question regarding query strings, script names, and so forth.. http://us2.php.net/variables.predefined webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |