100 posts
  • 5 Years of Membership
  • Collector Level 4
FreeWeb
says

Hello,

i hope that someone is her who can help me by a little question :)

I made a Textarea in a php document. This works fine, and i write an echo like this:

echo “ ”;

echo “Hello her is themeforest <
br> where are you?”;

echo “ ”;

My Problem is now that the <
br> tag has no effect, its also written in the Textarea.

My Question is, how can i set the textarea so that the <
br> Tag has an effect like in a Html site?

Thank You!!!

58 posts
  • 6 Years of Membership
  • Affiliate Level 3
  • Author Level 9
  • Collector Level 2
+6 more
DigitalCavalry
says

Try this

echo "<textarea>first line\rsecond line</textarea>"; 
100 posts
  • 5 Years of Membership
  • Collector Level 4
FreeWeb
says

Hello,

thanks for your help! But the \r doesent work, its just written in the textarea too. Its like the html tags are going to ignored in textareas??

It would be really nice if someone can tell me a solution!

Thank You!

3535 posts
  • Power Elite Author
  • Author Level 12
  • Trendsetter
  • United States
+13 more
sevenspark
Moderator
says

Think you may need to use \r\n if you’re on a Windows Server

echo "<textarea>first line\r\nsecond line</textarea>"; 
by
by
by
by
by
by