buluk21 Posted October 13, 2009 Share Posted October 13, 2009 I enter Client Case Notes notes in a textarea field on a PHP form. The field is 5 rows deep and 70 chars wide , using the scroll bar to see beyond 5 lines. After entering notes, I want to echo or print the entire textarea without the scrollbar so that i do File Print to print out the complete notes. The problem is that using Print or Printf of the textarea variable prints a stream all on one line, with no newlines - this is too wide to print out for longer notes. how can i do this? Link to comment https://forums.phpfreaks.com/topic/177546-how-to-show-a-complete-textarea/ Share on other sites More sharing options...
mikesta707 Posted October 13, 2009 Share Posted October 13, 2009 have a look at wordwrap() Link to comment https://forums.phpfreaks.com/topic/177546-how-to-show-a-complete-textarea/#findComment-936148 Share on other sites More sharing options...
Garethp Posted October 13, 2009 Share Posted October 13, 2009 echo nl2br($Textarea); Link to comment https://forums.phpfreaks.com/topic/177546-how-to-show-a-complete-textarea/#findComment-936149 Share on other sites More sharing options...
mikesta707 Posted October 13, 2009 Share Posted October 13, 2009 ahh oops i missread your post, do as garethp said Link to comment https://forums.phpfreaks.com/topic/177546-how-to-show-a-complete-textarea/#findComment-936153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.