--- Jay Blanchard <jay.blanchard at niicommunications.com> wrote: > [snip] > I want to use this variable in my script. So like this psuedocode: > > function highlightThing() > { > var page = somehow get php page name here; > myItem = getElementById(page); > highlight that item > } > > How do I get that in PHP? > [/snip] > > I think it is in $_SERVER['SCRIPT_FILENAME'] > > HTH! > > Jay This DOES give me the page, but with the FULL path -- any way to just get the filename itself? Tom ===== var me = tom.pixelmech.webDeveloper(); http://www.pixelmech.com/ http://www.maccaws.com/ [Making A Commercial Case for Adopting Web Standards] __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute