[PHPLIB] Re: [PHP3] text area to <br> From: Matt Allen (Matt <email protected>)
Date: 02/27/00

Hmmm...

I hate to say it but this is definatly an RTFM Question.

http://www.php.net/manual/html/function.nl2br.html

Matta

Chester McLaughlin wrote:
>
> I have an input form which contains a text input box. When the form is
> submited the submited information is written directly to a page. It
> works great, except that if a person typed a message like this:
> =====================
> This is my message...
>
> .... This is the end of my message.
> =========================
> it would end up like this:
>
> This is my message... .... This is the end of my message.
>
> Is there a way to translate a hard return in the text area box into a
> <br> or <p> tag?
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.