masgas Posted October 12, 2006 Share Posted October 12, 2006 Hi!I'm working on a forum. And in the message writing area, when I hit "enter" to place a line break or two, it appears correctly in the text box. However, when I print the messages with php this line break doesn't show...any ideas why?thank you for your help. Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 12, 2006 Share Posted October 12, 2006 use the nl2br() function on the [b]output[/b]. It converts 'newlines' to html br tags.[code]echo nl2br($message);[/code] Quote Link to comment Share on other sites More sharing options...
masgas Posted October 12, 2006 Author Share Posted October 12, 2006 ;DEXCELLENT STUFFTHANK YOU Quote Link to comment Share on other sites More sharing options...
masgas Posted October 12, 2006 Author Share Posted October 12, 2006 using smilies and formatting text is as simple as that?do you know of any tutorial for these stuff? 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.