okay, just a quick outline
hidden form fields:
on page 2 where you receive the input from page 1, you'd insert these values into the form, like (assuming form is submitted via post and php version >=4.2):
<!-- html mode -->
<input type="hidden" name="value1" value="<?php echo $_POST['value1']; ?>">
or
// php mode
echo '<input type="hidden" name="value1" value="'.$_POST['value1'].'">';
and repeat this for all relevant form values on all pages.
sessions:
put the command session_start(); on top of all pages (no html before that!)
to store a value, use
$_SESSION['value1'] = $_POST['value1'];
to retrieve all the values on the last page, simply get them from the session array: $_SESSION['valuename']