Posted by John Salerno on 01/18/39 11:39
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>
>
Yeah, I asked a similar question but I guess I don't know enough about
PHP to really get this yet. I'll have to do some research on the line of
code you gave above.
Thanks!
[Back to original message]
|