dev-ria Posted October 10, 2012 Share Posted October 10, 2012 hello, I have a textarea <textarea id="fe_text" name="email_text" cols=90 rows=20 onchange="clip.setText(this.value)" value=""> currently its used to copy to clipboard but i want to submit to send text in textarea with <br> for example <textarea> word word word word word word </textarea> if I submit the above and get using $_POST it displays word word word word word word i need the formatting with it. i used htmlentities but no luck Link to comment https://forums.phpfreaks.com/topic/269313-how-can-i-get-the-text-of-textarea-in-html-using-_post/ Share on other sites More sharing options...
Jessica Posted October 10, 2012 Share Posted October 10, 2012 nl2br Link to comment https://forums.phpfreaks.com/topic/269313-how-can-i-get-the-text-of-textarea-in-html-using-_post/#findComment-1384233 Share on other sites More sharing options...
dev-ria Posted October 10, 2012 Author Share Posted October 10, 2012 perfect!! Link to comment https://forums.phpfreaks.com/topic/269313-how-can-i-get-the-text-of-textarea-in-html-using-_post/#findComment-1384240 Share on other sites More sharing options...
ManiacDan Posted October 10, 2012 Share Posted October 10, 2012 or the <pre> tag. Link to comment https://forums.phpfreaks.com/topic/269313-how-can-i-get-the-text-of-textarea-in-html-using-_post/#findComment-1384242 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.