geroid Posted July 3, 2009 Share Posted July 3, 2009 Hi I retrieve a record from a table and display it in a html textarea. The problem is that it is not displaying the text correctly. When it appears in the textarea it looks like this: Author Gabriel Rosenstock will be in Byrne’s World of Wonder in the Fairgreen Shopping Centre reading for primary school children. As you can see, the text is tabbed at the beginning and sentences are forced onto the next line. I want the whole thing to display as normal text would (without this tab and line break). The text area code looks like this <textarea cols="40" rows="12" wrap="hard" name="contentirish"> </textarea> Any ideas Quote Link to comment https://forums.phpfreaks.com/topic/164651-textarea-problem/ Share on other sites More sharing options...
backie Posted July 3, 2009 Share Posted July 3, 2009 Instead of having wrap="hard" use wrap="off" and try and have the closing tag right next to the open as any space results in content to the textarea. Quote Link to comment https://forums.phpfreaks.com/topic/164651-textarea-problem/#findComment-868319 Share on other sites More sharing options...
runnerjp Posted July 3, 2009 Share Posted July 3, 2009 try doing it like this <textarea cols="40" rows="12" wrap="hard" name="contentirish"></textarea> i hd this problem where there was a space within the textarea code and it just added it to the text Quote Link to comment https://forums.phpfreaks.com/topic/164651-textarea-problem/#findComment-868324 Share on other sites More sharing options...
geroid Posted July 3, 2009 Author Share Posted July 3, 2009 Thanks backie That worked perfectly Quote Link to comment https://forums.phpfreaks.com/topic/164651-textarea-problem/#findComment-868326 Share on other sites More sharing options...
geroid Posted July 3, 2009 Author Share Posted July 3, 2009 Thanks to everyone for replies. It was simple that space problem between the textarea tags. Sorted now Quote Link to comment https://forums.phpfreaks.com/topic/164651-textarea-problem/#findComment-868329 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.