On Thu, 2 Apr 2009 15:32:01 +0000 (UTC), "Mike-H"
<webforumsuser (AT) macromedia (DOT) com> wrote:
Quote:
Is there a way to insert an actual carriage return and/or line feed in a form
and have it come out that way? There must be, because this forum seems to do it
just fine. If possible, I'd like to not require that they type in the escape
characters, but just hit the enter key within the textarea box. |
Not seeing your code makes it impossible to say that they aren't being
stripped out somewhere, but carriage returns are indeed submitted with the
form data. The problem is that HTML compresses white space and ignores the
carriage returns when displaying it. To get around that, use the PHP
nl2br() function:
echo nl2br($row['fieldname']);
Gary