Posted by John Salerno on 02/11/06 08:09
Mark Parnell wrote:
> Deciding to do something for the good of humanity, John Salerno
> <johnjsal@NOSPAMgmail.com> declared in alt.html:
>
>> I'd rather use a PHP include to insert this markup on each page, but how
>> would I do that and also be sure that the proper element gets the id?
>
> Didn't you ask that the other day? Or was it someone else?
>
> <li<?php if(basename($_SERVER['PHP_SELF']) == 'location.php') {print('
> id="uberlink"');} ?>>Home</li>
>
Hmm, but what if I want to put the entire block of menu items into a PHP
file and include() that in the HTML file? The above wouldn't work,
because it still uses a page by page method.
[Back to original message]
|