Check this:
http://xtrax.ro/php/hidden/
// index.php
<form method="POST">
<?php
if (intval($pag)==0) $pag=1;
if ($send=="Next page"){
$pag=2;
}
switch ($pag){
case "1" : {include ("pag1.inc.php"); break;}
case "2" : {echo "<input type=\"hidden\" name=\"info\" value=\"$info\">"; echo "<input type=hidden name=pag value=3>"; include ("pag2.inc.php"); break;}
case "3" : {include ("pag3.inc.php"); break;}
}
?>
</form>
// pag1.inc.php
<center><B>First page</B></center>
<center>
<B>Info:</B>
<input type="text" name="info">
<input type="submit" name="send" value="Next page">
</center>
// pag2.inc.php
<center><B>Second page</B>
<?php
echo "Information from the first page:$info<BR />";
echo "Add your code here to update the database";
?>
<input type="submit" name="send" value="Last page">
</center>
// pag3.inc.php
<center><B>Third page</B></center>
<?php
echo "Information from the first page:$info<BR />";
echo "Add your code here to upload the picture";
?>