Ver original<input type="text" name="foo" value="<?php echo !empty($_POST['foo']) ? $_POST['foo'] : ''; ?>"