|
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]
|