Some comments on these answers :-)

nl2br is the correct answer.

preg is like shooting a fly with a cannon, and str_replace would be right,
if nl2br wasn't right, which it is.

And every TEXTAREA tag on the planet should have WRAP=VIRTUAL in it.  In
fact, if *I* were in charge of HTML, there would be no other choice for
TEXTAREA wrapping.  The rest suck.  I *hate* sites that don't bother to do
this, so you're stuck with this stupid box that requires you to scroll like
crazy or send them badly-wrapped data.

Okay, I've spewed enough vile on TEXTAREA now :-)

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to