do something like this:
if (!$form) {
echo "<form action=$PHP_SELF method=post>";
echo "Do some form stuff here";
echo "<input type=hidden name=form value=2>";
echo "<input type=submit value=continue>
//the above tells it to jump to form 2
echo "</form>";
}
if ($form == "2") {
echo "<form action=$PHP_SELF method=post>";
echo "Do some form stuff here";
echo "<input type=hidden name=form value=3>";
echo "<input type=submit value=continue>
//the above tells it to jump to form 3
echo "</form>";
}
if ($form == "3") {
echo "<form action=$PHP_SELF method=post>";
echo "Do some form stuff here";
echo "<input type=hidden name=form value=done>";
//the above tells it that the form is done, time to submit
echo "<input type=submit value=Submit>
echo "</form>";
}
if ($form == "done") {
// do stuff here with the info
}