April 30th, 2000, 09:39 PM
Ok here's the scenario:
I have a textarea input box that I am trying to read into a file. The file part is not a problem, however, I am trying to figure out how to detect the line-breaks in the textarea box and get rid of them.
Does anyone know how this can be accomplished?
Thanks in advance,
April 30th, 2000, 10:18 PM
Hi, i am not such an expert, i'm just a newbie, and got the same problem.
expect, i did look to the search function
above in this screen ;-))
here's a copy of the answer i found :If you output it as HTML it will do that just as if you typed that in your HTML code (returns not displayed).
You can use the HTML <PRE> tag or you can use PHP's nl2br() function which converts new lines to <br>s
good luck !
Jan, The Netherlands.