How can PHP echo back the submitted form data into the form for the user's reference?

When a form is submitted, PHP can echo back the submitted form data into the form by using the `value` attribute in the input fields. This allows the user to see the data they entered if there was an error in the form submission. By retrieving the form data from the `$_POST` superglobal array and echoing it back into the form fields, users can easily correct any mistakes without having to re-enter all the data.

<form method="post">
  <input type="text" name="username" value="<?php echo isset($_POST['username']) ? $_POST['username'] : ''; ?>">
  <input type="email" name="email" value="<?php echo isset($_POST['email']) ? $_POST['email'] : ''; ?>">
  <textarea name="message"><?php echo isset($_POST['message']) ? $_POST['message'] : ''; ?></textarea>
  <input type="submit" value="Submit">
</form>