Xyphon Posted June 27, 2008 Share Posted June 27, 2008 Well, I'm making news, and my staff don't know HTML. How can I make it so att he end of every line (when they press enter) it auto "< br >"s. Link to comment https://forums.phpfreaks.com/topic/112116-solved-hey-how-can-i-make-it-so-it-auto-ltbrgts-at-the-end-of-every-line/ Share on other sites More sharing options...
LooieENG Posted June 27, 2008 Share Posted June 27, 2008 <?php $data = $_POST['data']; echo nl2br($data); ?> Link to comment https://forums.phpfreaks.com/topic/112116-solved-hey-how-can-i-make-it-so-it-auto-ltbrgts-at-the-end-of-every-line/#findComment-575600 Share on other sites More sharing options...
ball420 Posted June 27, 2008 Share Posted June 27, 2008 using nl2br heres the documentation http://uk.php.net/nl2br Link to comment https://forums.phpfreaks.com/topic/112116-solved-hey-how-can-i-make-it-so-it-auto-ltbrgts-at-the-end-of-every-line/#findComment-575603 Share on other sites More sharing options...
Xyphon Posted June 27, 2008 Author Share Posted June 27, 2008 Thank you, Looie. Link to comment https://forums.phpfreaks.com/topic/112116-solved-hey-how-can-i-make-it-so-it-auto-ltbrgts-at-the-end-of-every-line/#findComment-575609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.