PHP

How can i create a proper message text area with input tag to store php value?

  • php
  • html

1 comments

Coll 23
4 years ago

Can i check if this works?

<textarea class="form-control" rows="3" name="msg" placeholder="Your message here." onfocus='this.select()'>
<?php if (isset($_POST['encode'])) { echo htmlspecialchars($_POST['msg']);} ?>
</textarea>