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? Quote 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 Quote 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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.