Jack wrote:

> I want the browser could display exactly the same as the user input! even
> the lines and format!

For a browser to display line breaks, a "new line" isn't enough, it
needs a <BR> tag.

there is a function called nl2br() [new-line-to-break] which does this:

$text = [your file read in];
$htmlText = nl2br($text)

or something like that (haven't done it in ages!!)


Justin French

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to