bgp1 Posted May 31, 2006 Share Posted May 31, 2006 Hello,I have a form that users submit and it includes a textarea. I want it to capture the returns they put in the textarea into a mysql database. I have this much done. But, when I print the data back out, I want it to be formatted where there are returns. How can I go about doing this?Thanks! Link to comment https://forums.phpfreaks.com/topic/10887-php-and-textarea/ Share on other sites More sharing options...
Abbner Posted May 31, 2006 Share Posted May 31, 2006 while your text area is stored in the database it keeps track of the return strokes, but if you want those to apear on your webpage, you use the command to convert them to line breaksnl2br(); should do the trick Link to comment https://forums.phpfreaks.com/topic/10887-php-and-textarea/#findComment-40669 Share on other sites More sharing options...
bgp1 Posted May 31, 2006 Author Share Posted May 31, 2006 That worked! Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/10887-php-and-textarea/#findComment-40720 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.