I\'m using the following to set the value of a text area..
Description
Also you can use this method...
`<textarea rows="12" id="mytextarea"><?php echo $bio; ?> </textarea>
<script>
document.getElementById(`mytextarea`).innerHTML="Include the text you want to display";
</script>`
Textarea has no value. You need to insert your message between the opening and closing tags.
<textarea><?php echo htmlspecialchars($message); ?></textarea>
<textarea name="message" cols="40" rows="6"><?=$message?></textarea>
Note: Make sure $message
is properly sanitized and that short_open_tag
is enabled. Otherwise, @fabric's accepted answer is a better answer.