php3-list | 199903
Date: 03/06/99
- Next message: Michael Stearne: "Re: [PHP3] nl2br()"
- Previous message: Valerio Fioretti: "[PHP3] nl2br()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Remember that HTML treats newlines at whitespace -- forcing a newline
character to appear in the output will *not* cause the HTML viewer to
start putting things on a new line.
Typically, you enclose each "line" of text in <P> ... </P> tags, or you
use <BR> to force a line break, or if you want your output being
displayed EXACTLY as-is, bracket it with <PRE> ... </PRE> preformat
tags, in which case newlines will show up as newlines, tabs will work as
tabs, etc.
-Adam Thompson, MCNE
Commerce Design Inc.
<athompso <email protected>>
> Subject: [PHP3] Printing newline in HTML output
> Date: Fri, 5 Mar 1999 22:23:23 -0500
> From: "Sanford Carr" <spcarr <email protected>>
> To: php3 <email protected>
>
> I have a database listing form that works fine, but I'd like to see the
> HTML source formatted a little better. As it is, the entire WHILE loop
> prints out on one line. I've tride echo /n; and variations, but this
> doesn;t seem to force a new line in the HTML postPHP source.
>
> Sanford Carr
> Intermediacy Communications
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Michael Stearne: "Re: [PHP3] nl2br()"
- Previous message: Valerio Fioretti: "[PHP3] nl2br()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

