[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-24 Thread Martin Hughes
Sorry Hugh - didn't mean to send it just to you!! Hi! Thanks for the help! It works great, but I've now made the array 2 dimensional: ?php $index = array ( The Music Behindbr /Les Miseacute;rables = array (About Les Miseacute;rables), Introduction = array (About Les Miseacute;rables),

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-23 Thread Martin Hughes
Thanks everyone for the help!!! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Gabe da Silveira
Is the menu part of each page? Or is it a separate file/script that gets included in each page? Or is the navigation in a separate frame? If the menu is hard-coded into each page, then there's no reason to use PHP, because you have to modify each page ANYWAY, so you might as well just set

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Martin Hughes
OK here's the code in the page: !-- Start Navigation -- div id=navbar table class=navtable width=160 cellpadding=4 !-- Navigation Bar Heading -- tr td class=navheadWelcome/td /tr trtd class=navtext id=sela href=Home/a/td/tr trtd class=navtexta href=Introduction/a/td/tr trtd class=navtexta

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Gabe da Silveira
Okay, well you could either put code like this into each td cell like this: td class=navtext ?php if (sect == 5) print id=\sel\; ? That is kind of ugly, however. A more elegant solution would be to make an array containing the links then do a loop kind of like this (I'm just typing the code

[PHP] Re: Please Help - getting a hightlight depending on selected page

2001-08-22 Thread Hugh Bothwell
Martin Hughes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK here's the code in the page: !-- Start Navigation -- div id=navbar table class=navtable width=160 cellpadding=4 !-- Navigation Bar Heading -- tr td class=navheadWelcome/td /tr trtd