heldenbrau Posted August 4, 2009 Share Posted August 4, 2009 I am trying to create a forum in php. When somebody enters text into a text area and presses return to seperate paragraphs. When the form is submitted, the returns disappear. How do I get the return key info from the text area so I can display the posts the way the user types them in the field? Link to comment https://forums.phpfreaks.com/topic/168859-solved-how-to-get-carriage-returns-from-textarea-input/ Share on other sites More sharing options...
Zane Posted August 4, 2009 Share Posted August 4, 2009 nl2br Link to comment https://forums.phpfreaks.com/topic/168859-solved-how-to-get-carriage-returns-from-textarea-input/#findComment-890942 Share on other sites More sharing options...
heldenbrau Posted August 4, 2009 Author Share Posted August 4, 2009 How do you use that to get the carriage returns from the $_case['textarea'] data? Link to comment https://forums.phpfreaks.com/topic/168859-solved-how-to-get-carriage-returns-from-textarea-input/#findComment-890951 Share on other sites More sharing options...
heldenbrau Posted August 4, 2009 Author Share Posted August 4, 2009 ok, worked out how to use it now, thanks. Link to comment https://forums.phpfreaks.com/topic/168859-solved-how-to-get-carriage-returns-from-textarea-input/#findComment-890965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.