newrehmi Posted March 18, 2010 Share Posted March 18, 2010 hello, i got some problem with this function, in firefox, this function convert (space) to <br /> when I use it on textarea... I just want it to only convert (enter) to <br />, not (space). example codes: $text = $_POST['textarea']; $text = nl2br($text); Anybody got idea how to solve this? thanks so much. p/s:sorry for my bad english. Link to comment https://forums.phpfreaks.com/topic/195645-nl2br-problem/ Share on other sites More sharing options...
scvinodkumar Posted March 18, 2010 Share Posted March 18, 2010 do u have this problem in firefox browser only, or in all browser. Link to comment https://forums.phpfreaks.com/topic/195645-nl2br-problem/#findComment-1027956 Share on other sites More sharing options...
newrehmi Posted March 18, 2010 Author Share Posted March 18, 2010 only in firefox sir... please help me, i need to present my site to my lecturer in few more days... Link to comment https://forums.phpfreaks.com/topic/195645-nl2br-problem/#findComment-1027959 Share on other sites More sharing options...
newrehmi Posted March 18, 2010 Author Share Posted March 18, 2010 yay, solved. thanks God... my textarea was wrapped with 'hard'. Now I remove the wrap and it's done... thanks for replying anyway =) Link to comment https://forums.phpfreaks.com/topic/195645-nl2br-problem/#findComment-1027961 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.