On Fri, Jan 9, 2009 at 08:12, Stephen <stephen-d@xxxxxxxxxx> 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@xxxxxxxxxxxx || danbrown@xxxxxxx http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php