The easiest way to do this is something like this:
/ after submit /
$var = $POST["var"];
$var2 = $POST["var2"];
....etc...
In your code add checks:
if($var == "")
{
/ ERROR /
}
...etc...
OR, you could do them all at the same time, with something like:
if( ($var == "") || ($var2 == "") )
{
/ ERROR /
}
If you are submitting your form to the same page it is on, you can do the checks, then check for an error. If there is an ERROR, let the page load and populate the form fields, pointing out to them what field was left empty.
Helping any?
-- Jason