[PHP] RE: [PHP-WIN] Mutiline read as Sigle Line! From: Michael Rudel (mru <email protected>)
Date: 08/21/01

Hi Jack,

... look at the generated html-code, you will read:

This is a test!
and this is not a joke!

But since html doesn't display \r\n you have to use
the php-function nl2br.

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -

Besuchen Sie uns am 20. und 21. August 2001 auf der
online-marketing-düsseldorf in Halle 1 Stand E 16
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:mru <email protected>
internet: http://www.suchtreffer.de
_______________________________________________________________

> -----Original Message-----
> From: Jack [mailto:jack <email protected>]
> Sent: Tuesday, August 21, 2001 10:58 AM
> To: php-general <email protected>; php-windows <email protected>
> Subject: [PHP-WIN] Mutiline read as Sigle Line!
>
>
> Dear all
> I had a page which let user to input a long description into
> it! and had
> wrote a script which will "fputs" the user input content to
> content.txt!
> When i open the content.txt, it is shown below:
>
> This is a test!
> and this is not a joke!
>
> which is fine , because it display as how the user type into
> the input text
> box.
> I got another php page which i use "fileread" to grap the content from
> content.txt to display it to the browser!! The problem comes,
> which it read
> all the content from content.txt as one line!! It show like below:
>
> This is a test!and this is not a joke!
>
> I want the browser could display exactly the same as the user
> input! even
> the lines and format!
>
> Could anyone pls help me with this?
>
> Thx
> Jack
> jack <email protected>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe <email protected>
> For additional commands, e-mail: php-windows-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>