Re: [PHP] Mutiline read as Sigle Line!

2001-08-23 Thread Justin French
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];

[PHP] Mutiline read as Sigle Line!

2001-08-21 Thread Jack
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