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! Quote 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 Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/10887-php-and-textarea/#findComment-40720 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.