I am going to assume that for the html form you have something like this:
<form action='some_url.php' method='post'>
Name:<input type='text' name='name'><br>
Address:<input type='text' name='address'>
<input type='submit'>
And for the php (assumably some_url.php) you have something like this:
<?
echo "you have entered the following data:<br>";
echo "Name:";
echo $name;
echo"<br>Address:";
echo $address;
?>
You can create a page (form_page.php) something like this
<?
if ($name) {
echo "you have entered the following data:<br>";
echo "Name:";
echo $name;
echo"<br>Address:";
echo $address;
}
else {
echo "
<form action='form_page.php' method='post'>
Name:<input type='text' name='name'><br>
Address:<input type='text' name='address'>
<input type='submit'>
";
?>
You are basically looking for a variable from the form that would not be there if the form has not been filled out and submitted. I am currently working on a site that has 7 sections one of which is a multi page form depending on the exact options you choose. and all of the content in on one page with a header and footer, stylesheet, and functions.php... everything inside the content area is basically inside one page...