bradkenyon Posted May 2, 2008 Share Posted May 2, 2008 I have a text area, i want to be able to enter text into a db, and when it is displayed on a website, where the person hits return/enter on the keyboard in the textarea cms, it will display as a line break between different paragraphs of text. so the person enters the news item into the cms textarea box, but right now it spits the out the words on the site w/o the line breaks where the person who put it in the cms textarea box w/ a return/enter line break between paragraphs. hope this makes some sort of sense. i have attached a photo to help. thanks in advance. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
kristen Posted May 2, 2008 Share Posted May 2, 2008 Try nl2br http://us3.php.net/nl2br Quote Link to comment Share on other sites More sharing options...
bradkenyon Posted May 2, 2008 Author Share Posted May 2, 2008 perfect, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.