Re: Editing in a text area field

From: Date: Fri, 09 Jan 2009 13:23:04 +0000
Subject: Re: Editing in a text area field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-285822@lists.php.net to get a copy of this message
On Fri, Jan 9, 2009 at 08:12, Stephen <stephen-d@rogers.com> wrote: > I have a form to accept free text in a textarea field. The entry is stored > in a database. > > If the user enters: > > abc > def > ghi > > I want it to finally display like that. > > If they enter > > abc > > def > > ghi > > I want it to display with the line gaps. Why not store it as plain text in the database, then run it through nl2br() when you SELECT it from the database for display? -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out!

« previous php.general (#285822) next »