When you render the variables for editing in the second form, also include them as <input type= hidden name...> tags.That way when your user submit this second form once more the variables would be carried away with the ones in the second page to the third page.
i.e
form1
<form action=form2.php method=post>
<input name=data1>
<input name=data2>
<input name=data3>
<input name=data4>
</form>
form2.php
<form action=form3.php method=post>
<input name=data1 value=<?echo $data1;?>>
<input name=data2 value=<?echo $data2;?> >
<input name=data3 type=hidden value=<?echo $data3>
<input name=data4 type=hidden value=<?echo $data4>
</form>
form3.php
<?
$dm="<br>";
echo $data1.$dm.$data2.$dm.$data3.$dm.$data4;
?>