Re: TEXTAREA ...
| From: | Martin Clifford | Date: | Wed, 17 Jul 2002 13:15:14 +0000 |
| Subject: | Re: TEXTAREA ... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20600@lists.php.net to get a copy of this message | ||
$content = nl2br($content);
That will convert all newline characters into <br> tags.
HTH
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> José Moreira <jmoreira@e-terno.net> 07/17/02 09:15AM >>>
hello ... im sorry to bother with a non-db question but i searched for this
and got 0 record :P
its all about the wrappig in textareas:
how can i convert the end of line/ line breaks ['enter' keys] that the user
hits while
filling a textarea so that when i display the record content the text does
break where the user intended ???
ex.:
<textarea>bla blah blah
bla blah blah</textarea>
if i echo() this textarea value i will apear in a single line even if the
user pressed enter 2 break the line