Page 1 of 1

[SOLVED}nl2br problem

Posted: Wed Jul 06, 2005 7:06 am
by pleigh
why is it that i inserted this function nl2br() and the result of the text inside it is not as what it is to be...to be clear:

i want to insert this line s of text in a textarea:
abcd
efgh
ijkl
mnop

qrst
uvwx
yz
i want the above text appear as it is, including how many times i strike the return key...when i use the nl2br(), the above became:
abcd efgh ijkl mnop qrst uvwx yz
please help.....thanks in advance...:)

Posted: Wed Jul 06, 2005 7:24 am
by Chris Corbyn
Show some code please.