session_start(); require($_SERVER['DOCUMENT_ROOT'].'/a/inc/bootstrap.php'); $toEmail = getSingleValue("formsEmail", "locations", "id", $_companyID); if ($toEmail == "") { $toEmail = 'michael@nobulmedia.com'; } // GET POST INFORMATION extract($_POST); // CHECK FOR REQUIRED FIELDS if ($name == "") {$nameNeeded = true;} if ($email == "") {$emailNeeded = true;} elseif (!validEmail($email)) {$invalidEmail = true;} if ($comments == "") {$commentsNeeded = true;} if ($vercode == "") {$verificationNeeded = true;} elseif ($vercode != $_SESSION['vercode']) {$verificationFailed = true;} if ( $nameNeeded || $emailNeeded || $invalidEmail || $commentsNeeded || $verificationNeeded || $verificationFailed ) { ?>
| Name: | '.stripslashes($name).' |
| Email: | '.stripslashes($email).' |
| Customer Type: | '.stripslashes($customerType).' |
| Phone: | '.stripslashes($phone).' |
| Message: | '.stripslashes(nl2br($comments)).' |