I have webpage A. The user clicks on a form to submit data, and it takes him to webpage B. When he clicks the back button, I need webpage A to be refreshed from the server,
OK try this instead:
You will need to set $_SESSION['form_submitted'] = true on page 2.