cleary1981 Posted January 6, 2009 Share Posted January 6, 2009 Hi, I am using several textareas in my application. The content is being stored in a mysql database. The problem I am having is that I want the output data to be exactly the same as the input. I have tried using the wrap attribute but that hasnt worked. For example When I write: xyz abc it comes out as : xyz abc on the same line. Link to comment https://forums.phpfreaks.com/topic/139652-textarea-problem/ Share on other sites More sharing options...
xProteuSx Posted January 6, 2009 Share Posted January 6, 2009 I'd be real interested in this solution too. Without writing or implementing a WYSIWYG input everything is kind of simplified. I wonder if making the field Binary would fix this. However, even if it did, the DB would look pretty ugly. Link to comment https://forums.phpfreaks.com/topic/139652-textarea-problem/#findComment-730683 Share on other sites More sharing options...
redarrow Posted January 6, 2009 Share Posted January 6, 2009 nl2br(); Link to comment https://forums.phpfreaks.com/topic/139652-textarea-problem/#findComment-730703 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.