What best practices should be followed when designing PHP forms with disabled input fields?

When designing PHP forms with disabled input fields, it is important to ensure that the data in those fields cannot be manipulated by users. One best practice is to use hidden fields to store the data that would otherwise be displayed in the disabled fields. This way, the data is still submitted with the form but cannot be altered by the user.

<form method="post" action="process_form.php">
  <input type="text" name="username" value="JohnDoe" disabled>
  <input type="hidden" name="username_hidden" value="JohnDoe">
  <input type="submit" value="Submit">
</form>