desithugg Posted July 19, 2006 Share Posted July 19, 2006 umm im coding a forum and using textarea's to post/reply..In a textarea when you press enter it starts a new line.But when i post and its recorded in mysql.and i try to view it.it doesnot start a new line it just keeps going in one line. Link to comment https://forums.phpfreaks.com/topic/15060-textareas/ Share on other sites More sharing options...
Joe Haley Posted July 19, 2006 Share Posted July 19, 2006 nl2br();will convert all newlines (\n) into BR tags (<br />) Link to comment https://forums.phpfreaks.com/topic/15060-textareas/#findComment-60571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.