"user2424" wrote:[color=blue]
> I noticed that Message-ID:
> <1106170648.432107.204790@c13g2000cwb.googlegroups .com> from
>
rick.huby@e-connected.com contained the following:
>[color=green]
> >
> >I need to replicate this on the new PHP system but am using an[/color]
> include[color=green]
> >file for the navigation, so I am unable to hardcode the relevent[/color]
> image[color=green]
> >on the navigation. I don’t really want to post things to[/color]
> the query[color=green]
> >string so wondered if anyone has a solution for figuring out which[/color]
> page[color=green]
> >I am on and getting the nav to choose the relevent image for the
> >current section.[/color]
>
> $_SERVER[’PHP_SELF’] contains the name of the current
> page
>[/color]
and if you want the whole url, do:
$_SERVER[’PHP_SELF’] . "?" . $_SERVER[’QUERY_STRING];
note that if querystring is empty, then a "?" is added, if that is a
problem, run code to check for QS being present.
--
Posted using the
http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL:
http://www.dbforumz.com/PHP-Page-ftopict189432.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbforumz.com/eform.php?p=640188