Thanks John, you're right -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The newlines are preserved. Do a view source of your page where you're > displaying it and you'll see what I'm talking about. HTML just doesn't > render newlines, only <br>. If you're seeing something different, then > show your code and explain this more. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > > -----Original Message----- > > From: Gregory Chagnon [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 11:19 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] multiple line text area > > > > That would work, only I need to copy this text to a file without the > </br> > > in it. > > -Greg > > > > > > "John W. Holmes" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > I need to be able to preserve line breaks when a user types in > > > multiple > > > > lines in a multitple line test area. Right now if I echo > > > > $_POST['textarea'] > > > > I get everything on one line. Is there any way to do this? > Thanks! > > > > -Greg > > > > > > www.php.net/nl2br > > > > > > ---John W. Holmes... > > > > > > PHP Architect - A monthly magazine for PHP Professionals. Get your > copy > > > today. http://www.phparch.com/ > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php