Re: textarea new line to mysql database

From: Date: Fri, 15 May 2009 16:17:28 +0000
Subject: Re: textarea new line to mysql database
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-292635@lists.php.net to get a copy of this message
On Fri, 2009-05-15 at 11:29 -0400, Paul M Foster wrote: > On Fri, May 15, 2009 at 07:19:24AM -0700, PHPScriptor wrote: > > > > > Mja, that's not my intention, in that case I also could use nl2br... > > > > Why does this problem exists? And why does it work with <pre>? Is this a PHP > > problem or more a HTML problem? > > HTML doesn't recognize newlines when it displays text. The <pre> tag > maintains the formatting of your original text, including newlines. > Unfortunately, it also displays text in a monospace font. You can style a <pre> tag. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#292635) next »