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:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



> -----Original Message-----
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 10:58 AM
> To: [EMAIL PROTECTED]; [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
> [EMAIL PROTECTED]
>
>
>
> --
> PHP Windows 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]
>


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