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 tag.
there is a function called nl2br() [new-line-to-break] which does this:
$text = [your file read in];
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 ty
2 matches
Mail list logo