CincoPistolero Posted November 18, 2009 Share Posted November 18, 2009 I have text box that users enter data into. I want them to be able to hit the enter key to create a new line. When they submit data to DB, it goes to a confirm page. I'm using stripcslashes so that it does not display the \r and \n. However, when I do this, it does not display the returns anymore. Is there a different method I can use? Link to comment https://forums.phpfreaks.com/topic/182058-displaying-newline-returns-in-text-boxes-andor-via-echo/ Share on other sites More sharing options...
smerny Posted November 18, 2009 Share Posted November 18, 2009 nl2br() Link to comment https://forums.phpfreaks.com/topic/182058-displaying-newline-returns-in-text-boxes-andor-via-echo/#findComment-960352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.