here and try again." } if (!isset($email) { echo "Some of the Form Fields have been incorrectly filled in, please click here and try again." } if ($message == "Please type your message here.") { echo "Some of the Form Fields have been incorrectly filled in, please click here and try again." } mail($toaddr, $subject, $body, $headers); header( "Location: http://www.domain.com/index.html" ); } else { echo "Some of the Form Fields have been incorrectly filled in, please click here and try again." } ?