Just put it inside the element, that is between the opening and closing tags.
Code:
<textarea ...><?php echo value here ... ?></textarea>
This is no different than most other HTML markup, like paragraphs, spans, etc.
Consider the difference between an element's
attributes and its
content. Attributes are name="value" pairs inside the angle brackets with the element name, but
content goes between the opening and closing tags.
Code:
<p style="...">Something else here</p>
<span id="42">More stuff here</span>
<textarea name="myself">Whatever you want to edit here</textarea>
...where
style,
id and
name are
attributes, and the visible
content is always between the opening and closing tags.
One
exception is the input element which has a
value attribute but does not expect content between the opening and closing tags and is normally self closing.
Code:
<input name="me" value="something" />
In this limited view, you may think of the
input element, and some other form elements, as a kind of exception, and
textarea as having the "normal" or
expected behavior. Actually the input element is simply defined to have a different behavior and is an empty element in that it has no
content, but it does have a visible
value attribute.