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 Quote Link to comment Share on other sites More sharing options...
Jessica Posted October 10, 2012 Share Posted October 10, 2012 nl2br Quote Link to comment Share on other sites More sharing options...
dev-ria Posted October 10, 2012 Author Share Posted October 10, 2012 perfect!! Quote Link to comment Share on other sites More sharing options...
ManiacDan Posted October 10, 2012 Share Posted October 10, 2012 or the <pre> tag. Quote Link to comment 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.