Use the PHP str_replace function before writing it to the DB. Replace all "\n" characters with an empty string "". http://us2.php.net/manual/en/function.str-replace.php On 6/13/05, Paul Nowosielski <paul@xxxxxxxxxxxxxxxxxxx> wrote: > Hi, > > I'm having a perplexing problem. I'm gather data through a <textarea> > html from field and dumping it to MySQL. > > I want to display the data as a long string with no carriage returns or > line breaks in a dhtml div window. > > The problem I'm have is that the form data is remembering the carriage > returns. I tried using trim() and rtrim() with no luck. The data is > still formatted exactly like it was inputed. > > Any ideas why this is happening and how I can format the text properly?? > > TIA! > > > -- > Paul Nowosielski > Webmaster CelebrityAccess.com > 303.440.0666 ext:219 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php