Sorry, no recommendations on a PHP book, as I've never really read any, I've pulled everything by knowing what I wanted to do and used Google to find out how. For Dreamweaver users I have seen David Powers books recommended quite a bit.
First I would set $tabToShow = 0; at the top of you page, above the "if (array_key_exists('send', $_POST)) {" that starts off the code block you pasted. This will allw $tabToshow to have a default value when the page is first loaded (no form post), or when the form has posted and the form validation has passed.
I would add an else statement to the "if (!suspect && empty($missing)) {" if statement. See below. Hopefully it comes through to the forum as your code block didn't go into the forum well.
// go ahead only if not suspect and all required fields OK
if (!suspect && empty($missing)) {
//build the message
$message = "Name: $name\r\n\r\n";
$message .= "Firm's name: $business\r\n\r\n";
$message .= "Street address: $addressStreet\r\n\r\n";
$message .= "City: $city\r\n\r\n";
$message .= "State: $state\r\n\r\n";
$message .= "Zip code: $zip\r\n\r\n";
$message .= "Phone number: $phone\r\n\r\n";
$message .= "Email address: $email\r\n\r\n";
$message .= "Nature of inquiry: $inquire";
// limit line lenght to 70 characters
$message = wordwrap($message, 70);
// send it
$mailSent = mail($to, $subject, $message);
if ($mailSent) {
// $missing is no longer needed if the email is sent, so unset it
unset($missing);
}
}
else{ // suspect or at least one required field missing
$tabToshow = 4; // 4 = 5th tab
}
}