title: Overwrite input value in form field
body: <p>I have an "Update Profile" script that retrieves the details of the logged in user in a form input, so they can see what the current values are. Like this:</p>
  
  <pre><code> &lt;input type="text" name="first_name" id="first_name" value='&lt;?= $row-&gt;f_name; ?&gt;' title="enter your first name."&gt;
  </code></pre>
  
  <p>This works. When users navigate to the page they see their first name appear in that input box. When they go to change their name and enter in a new value the form submits but keeps the original value and not the updated one. I assume that is because I am hard-coding a value to it with the <code>value</code> attribute. </p>
  
  <p>How can I show the user the value in the input so that if they choose to not edit it, it does submit with the original value and not a blank, but if they do choose to add text to the input box the new string is submitted? </p>