[thelist] getting page name with PHP

Tom Dell'Aringa pixelmech at yahoo.com
Tue Sep 10 14:34:00 CDT 2002


Hey php experts,

I want to highlight something on my page based on which page is
loaded. I have the thing I want highlighted IDd as the same name as
the page.

So, if I am on index.php, i want the item with the id "index" to be
highlighted.

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?

Thanks

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



More information about the thelist mailing list