textarea all on 1 line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
me666
Forum Commoner
Posts: 87
Joined: Wed Oct 08, 2008 5:04 pm

textarea all on 1 line

Post by me666 »

hi, have a text area that saves the info into mysql table and emails it to me... but in the email (html format) att the text come on 1 line replacing the return key presses with a space, how would i change this so it actually prints it to email on separate lines?
thanks :)
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: textarea all on 1 line

Post by requinix »

Use nl2br.
Post Reply