[SOLVED}nl2br problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

[SOLVED}nl2br problem

Post 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...:)
Last edited by pleigh on Wed Jul 06, 2005 7:24 am, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Show some code please.
Post Reply