jwk811 Posted April 19, 2009 Share Posted April 19, 2009 when someone submits a textarea form it will go in the database. only problem is it doesnt make the spaces so it all comes out bunches together when i want the line spaces to be there. i dont know if its with the php, html, or mysql database itself please help seems like something easy i just cant figure it out ive been looking on google cant find anything gahhh Link to comment https://forums.phpfreaks.com/topic/154777-solved-line-spaces-in-text-area-and-mysql-text/ Share on other sites More sharing options...
jOE :D Posted April 19, 2009 Share Posted April 19, 2009 Have you tried using nl2br() before outputting the information from the database? http://us2.php.net/nl2br Link to comment https://forums.phpfreaks.com/topic/154777-solved-line-spaces-in-text-area-and-mysql-text/#findComment-813913 Share on other sites More sharing options...
jwk811 Posted April 19, 2009 Author Share Posted April 19, 2009 but it gets submitted to the database however they right in the textarea i dont understand how that would work Link to comment https://forums.phpfreaks.com/topic/154777-solved-line-spaces-in-text-area-and-mysql-text/#findComment-813916 Share on other sites More sharing options...
jwk811 Posted April 19, 2009 Author Share Posted April 19, 2009 nevermind i understand it now and it works THANKS! Link to comment https://forums.phpfreaks.com/topic/154777-solved-line-spaces-in-text-area-and-mysql-text/#findComment-813921 Share on other sites More sharing options...
jOE :D Posted April 19, 2009 Share Posted April 19, 2009 Glad to help!! Link to comment https://forums.phpfreaks.com/topic/154777-solved-line-spaces-in-text-area-and-mysql-text/#findComment-813927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.