Lamez Posted January 12, 2008 Share Posted January 12, 2008 Hey Guys, How do I make it when I hit enter in a text area, into a line break? -Thanks Quote Link to comment https://forums.phpfreaks.com/topic/85703-solved-making-line-breaks/ Share on other sites More sharing options...
phorcon3 Posted January 12, 2008 Share Posted January 12, 2008 it automaticlly does that for you. it will insert the line breaks into your MySQL database. to output the data you'd have to use: <?php echo nl2br($data); ?> here you can find some more information on nl2br: http://us.php.net/nl2br Quote Link to comment https://forums.phpfreaks.com/topic/85703-solved-making-line-breaks/#findComment-437396 Share on other sites More sharing options...
Lamez Posted January 12, 2008 Author Share Posted January 12, 2008 Thanks! it looks great now! Quote Link to comment https://forums.phpfreaks.com/topic/85703-solved-making-line-breaks/#findComment-437412 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.