Hiya all
Im a little stuck on a problem
I need to get the name of the page that is currently displayed, PHP_SELF doenst work coz that adds the path from / and i literally need the script name so i can use it in an if statment to generate the correct links depending on hte state of the page
any help or code snippets would be appciated
many thanks
Ash
PHP_SELF and use strrpos to find last /, then cut the string there...
sth like
$xPos = strrpos($PHP_SELF, "/"); $xScript = substr($PHP_SELF, $xPos);
i havent tested it... i wrote it from the head. something like that.