shamsuljewel Posted October 2, 2007 Share Posted October 2, 2007 Hi all, I have a textarea and I input 3 lines on it and save the data in a database field name signature (text). When I print it shows in one line. I use $signature = $_POST['signature']; $signature = stripslashes($signature); $signature = str_replace("rn","<br>", $signature); But still it doesnot work. Any Suggestion???? Link to comment https://forums.phpfreaks.com/topic/71493-solved-save-with-newline-in-database/ Share on other sites More sharing options...
xylex Posted October 2, 2007 Share Posted October 2, 2007 $signature = str_replace("\r\n","<br>", $signature); Link to comment https://forums.phpfreaks.com/topic/71493-solved-save-with-newline-in-database/#findComment-359895 Share on other sites More sharing options...
shamsuljewel Posted October 2, 2007 Author Share Posted October 2, 2007 no still not worked!! Link to comment https://forums.phpfreaks.com/topic/71493-solved-save-with-newline-in-database/#findComment-359898 Share on other sites More sharing options...
shamsuljewel Posted October 2, 2007 Author Share Posted October 2, 2007 thanks It works..... Link to comment https://forums.phpfreaks.com/topic/71493-solved-save-with-newline-in-database/#findComment-359900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.