You are here: Re: Coding style... « All PHP « IT news, forums, messages
Re: Coding style...

Posted by Curtis on 01/02/06 23:24

witkey <phponline@msn.com> wrote in message
news:1136213143.451619.143970@o13g2000cwo.googlegroups.com..
..
> You can use session variables and you can look more info
on php.net
>
> http://us2.php.net/session
>
> when your customer login your panel and you create a
session like
> $_SESSION['username']
>
> after
> <?php
> if($_SESSION['username'] != "" ) {
> Echo "<li><a href="user/login" title="">Log In</a></li>";
> } else {
> Echo "<li><a href="logout" title="">Log Out</a></li>";
> }
> ?>
>
>
> Onur YERLIKAYA

The question went to style and not to the particulars of
this code, which I quoted from a Drupal coding snippet.


--

Curtis

Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.
>

 

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

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