Originally Posted by Brandoe85
In the value attribute in the html check if it's been set:
<input type="text" name="first" value="<?php echo (isset($_POST['first'])) ? $_POST['first'] : ''; ?>"
That is how you implement it. If the $_POST var is set, then you know the form has been submitted, if it hasn't you know that you do not need to display the $_POST value, because it doesn't have a value.
Notice, $_POST['first'] relate to the name in your input field...see?