You are here: Re: indenting « PHP Programming Language « IT news, forums, messages
Re: indenting

Posted by tomb on 10/08/90 11:36

Jean Pion wrote:

> Dear readers,
>
>If you use some funtion to generate html code like:
>
><?
>function display_stuff( parameters)
>{
> echo "<p>\n";
> echo " <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"
>width=\"100%\">\n";
> /* .. more stuff here... */
> echo " </table>\n";
> echo "</p>\n";
>}
>?>
>
>Is there some way to know your 'current horizontal position' so you can
>indent a html section properly?
>
> Tia, Jean
>
>
>
>
As Iván alludes to, the great thing about php is you're really writing a
program, not html. So, in the php commands you'll want neat code. That
will benefit you when you go back to it. I would recommend also
including comments about what is going on, so you don't have to try to
remember 6 months from now. But the only reason to generate neat html
is so the users can look at the page source and make sense of it more.

Tom

 

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

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