Reply to Re: another stumbling block

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация