Personally, I always do basic form checking with javascript first. It is easy enough and leads to a much better user experience as they do not have to wait for a page reload to find out they have missed a required field. Have a look at these examples and read some of the tutorials to see how its done.
Of course, you still have to validate the data once it has been submitted in case the user has js disabled. How you do that depends very much on the structure of your site and scripts. Here is an example.
// create a var to store the count of missing fileds
$missing = 0;
// test each required field and count it if missing
if (!isset($_POST['name'])) {
$missing = missing++;
}
if (!isset($POST['email'])) {
$missing = $missing++;
}
// then check to see if anything was missing, if not build page 2
if ($missing=0) {
// page 2 script
}
else { // rebuild page 1 with a comment for each missing field
echo '<form>';
if (isset($_POST['name'])) {
echo '<input type="text" name="name" value="' . $_POST['name'] . '">';
} else {
echo '<p>Your name is a required field</p>
<input type="text" name="name">';
}
// and so on for each field
There are lots of ways to do all of this - mine is just a simple example to give you the idea