You can process your form in your same form page by using
<FORM ACTION="<?=$_SERVER["PHP_SELF"] ?>" .........
You can use some flow-chart like this:
-- check form variables including submit button
$var1 = $POST["var1"];
$var2 = $POST["var2"];
$submit = $_POST["submit"];
-- If there is no Submit Button value >>
it means user didn't send it yet. So no error messages displayed.
-- if there is submit button but some fields are empty or wrong >>
display an error message
-- if there is submit button and everything is ok
thank you for submitting
go to this page
-- here is your form begins...
Form
Form element 1 with defaul value of $var1
Form element 2 with defaul value of $var2
Submit button
End form
Hope this helps...