RE: [PHP] multiple line text area
| From: | John W. Holmes | Date: | Thu, 27 Feb 2003 04:25:30 +0000 |
| Subject: | RE: [PHP] multiple line text area | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137348@lists.php.net to get a copy of this message | ||
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:gregchagnon@hotmail.com]
> Sent: Wednesday, February 26, 2003 11:19 PM
> To: php-general@lists.php.net
> 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" <holmes072000@charter.net> wrote in message
> news:003301c2de16$73883bb0$7c02a8c0@coconut...
> > > 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