You would want to add some code to check if the posted value is set and if it is then use the post to populate the form. To do this, you would want to have something like this for each of the form fields:
value="<?php echo((isset($_POST["form_field"])?$_POST["form_field"]:"")); ?>"
The form_field is the name of the form field that you are adding the value to.