Setting value of a HTML form textarea?

Viewed 108265

I'm using the following to set the value of a text area..

<?php
$message = $_REQUEST['message'];
?>
<br/><b>Description</b><br/>
<TEXTAREA NAME="message" COLS=40 ROWS=6 value="<?=$message;?>"></TEXTAREA><br/><br/>
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />

but it doesn’t appear to be working. The value of message is not null. Does anyone have any idea why it's not filling the value?

3 Answers

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>`
Related