vampke Posted December 11, 2007 Share Posted December 11, 2007 Hi people, I using a php form in a webpage and storing the results from the form in a mysql database. Now the script will disregard hard returns when collecting from the database. The results are put in html I tried solving this by entering <br /> manually in the forms, but I'm thinking there must be an easier way... How can i make the POST script put the hard returns in the database as <br /> ? Link to comment https://forums.phpfreaks.com/topic/81228-solved-hard-return-from-form-in-database/ Share on other sites More sharing options...
JacobYaYa Posted December 11, 2007 Share Posted December 11, 2007 nl2br()? Link to comment https://forums.phpfreaks.com/topic/81228-solved-hard-return-from-form-in-database/#findComment-412341 Share on other sites More sharing options...
vampke Posted December 18, 2007 Author Share Posted December 18, 2007 sorry for late reaction, lost track of this :/ exactly what i was looking for! thank you very much! Link to comment https://forums.phpfreaks.com/topic/81228-solved-hard-return-from-form-in-database/#findComment-417477 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.