PHP Code:
<textarea><?php if (isset($_POST['body'])) { echo htmlentities($_POST['body']); } ?></textarea>
PHP Code:
<textarea value="<?php if (isset($_POST['body'])) { echo htmlentities($_POST['body']); } ?>"></textarea>
You can look here
what i talk about, go in Message area, click inside and press CTRL + a and you will see what problem is its populated with blank space PHP Code:
<form action="contact.php" method="POST">
<ul>
<li><label><strong>Email</strong></label></li>
<li><input type="email" name="email" placeholder="Email"
value="<?php if (isset($_POST['email'])) { echo htmlentities($_POST['email']); } ?>"></li>
<li> </li>
<li><label><strong>Title</strong></label></li>
<li><input type="text" name="title" placeholder="Title"
value="<?php if (isset($_POST['title'])) { echo htmlentities($_POST['title']); } ?>"></li>
<li> </li>
<li><label><strong>Message</strong></label></li>
<li><textarea name="body" cols="40" rows="8">
<?php if (isset($_POST['body'])) { echo htmlentities($_POST['body']); } ?>
</textarea></li>
<li> </li>
<li><label><strong>Security check</strong></label></li>
<li>5 + 3 = <input type="text" name="securecheck"></li>
<li><input type="submit" name="send" value="Send" class="submit-button"></li>
</ul>
</form>






