My website is a collection of 3 pages. I take some inputs in each page and calculate the result at every page. I need to display all the results only at the last page. Each of the HTML page submits to a php file where I do the computation and give a header function for the next HTML page. For example Page1 is a html page whose form is submitted to Page1Redirect.php. All computations are done in this file and then it redirects to Page2 which is again a HTML page.
I do not understand how can I pass the value only to the last page and give the header function to the next page ? Do I need to use sessions and cookies ? Could anyone give a solution ?
Thanks in advance