I have simple form that allows the user to change their password. I am using the codeigniter framework form validation tools to check if the user correctly entered their current password and if the new password is acceptable and if the confirmation password matches the new password. Three fields in all. I'm also using the repopulation tool to repopulate the fields if there was a mistake.
If the correctly enter everything I have the form display the same form with a message at the bottom that says Password has been changed. However, the data that was entered remains there. I've tried doing a redirect to the same form but then I can't have the confirmation message.
What I really want to know is there a way to delete or clear the data that is I the repopulation variables. So that when the form is completed, the form has no values to put back into those fields