Page 1 of 1

Separating Lines in Textfields

Posted: Sat Jul 26, 2003 2:56 am
by Caped Knight
This is something I should probably know, but...

I have a form for users to send messages to each other. It's all fine except that when the user separates to lines with enter in the form, and the string goes to the user he/she's sending it to (by database) without any line breaks. Is there any way to take care of this?

Thanks.

Posted: Sat Jul 26, 2003 6:56 am
by qartis
Maybe try a nl2br() on the message before it enters the database.