mjurmann Posted March 16, 2008 Share Posted March 16, 2008 Is there a way to encode line breaks from a textarea in a form so that when I receive the information via e-mail, the line breaks appear and it isn't just one huge paragraph? Thanks! Link to comment https://forums.phpfreaks.com/topic/96431-encode-line-breaks-in-strings-from-text-areas-with-hard-returns/ Share on other sites More sharing options...
mjurmann Posted March 16, 2008 Author Share Posted March 16, 2008 Found it: $Comments=nl2br($Comments); Use the nl2br(); function Thanks anyways! Link to comment https://forums.phpfreaks.com/topic/96431-encode-line-breaks-in-strings-from-text-areas-with-hard-returns/#findComment-493549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.