I am building a web site that collects user input via a form on page (1), displays what the user entered on a confirmation page, page (2), and gives the user an opportunity to edit the information on page (3) before hitting a button intended to submit the changes and display a second confirmation page, page (4), that features the edited input.
Page (1), (2), (3) and (4) are actually the same php page that use an include page for the html. The include page displays different information based on what is fed to it form the php page.
I am able to display the input captured from the form on page (1) on page (2) and on page (3) using session variables.
My problem occurs when the user updates the information that appears on page (3) and hits the submit button.
The information on the confirmation page, page (4), does not change from what was originally input on page (1). In other words, I cannot get the new input to overwrite the original input.
Help. What should I do?