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. Quote Link to comment 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 />) 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.