You are here: Re: A: active link « HTML « IT news, forums, messages
Re: A: active link

Posted by Jim Higson on 06/22/06 21:56

Florida Flamingo wrote:

> Thanks for all the great answers. It looks like what I wanted to
> accomplish is vastly over my head, as I don't write scripts.

Is is actually really easy in PHP because it can be put in the middle of
your HTML. You only need something like:

<div id="links">
<? if( $current_page == 'home' ): ?>
<span>HOME</span>
<? else ?>
<a href="http://www.example.com">HOME</a>
<? endif ?>
</div>


Not too bad, huh? There's a little more to it than that, but not a great
deal.

--
Jim

 

Navigation:

[Reply to this 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

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