Free Quote
Request a quote now!
'; } ?>
function email(){ $recipient = "admin@leviathanpc.net"; $subject = "Contact Us form on Leviathan PC"; $name = htmlspecialchars($_POST['name']); $email = htmlspecialchars($_POST['email']); $headers = 'From: ' . $email . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email)) { die("E-mail address not valid"); } $message = htmlspecialchars($_POST['message']); $body = "Name: " . $_POST['name'] . " E-mail: " . $_POST['email'] . " company: " . $_POST['company'] . " address: " . $_POST['address'] . " address2: " . $_POST['address2'] . " city: " . $_POST['city'] . " state: " . $_POST['state'] . " zip: " . $_POST['zip'] . " phone: " . $_POST['phone'] . " website: " . $_POST['website'] . " needs: " . $_POST['need1'] . ", " . $_POST['need2'] . ", " . $_POST['need3'] . ", " . $_POST['need4'] . ", " . $_POST['need5'] . ", " . $_POST['need6'] . ", " . $_POST['need7'] . ", " . $_POST['need8'] . ", " . $_POST['need9'] . ", " . $_POST['need10'] . ", " . $_POST['need11'] . " budget: " . $_POST['budget'] . " hear: " . $_POST['hear'] . " message: " . $message; mail($recipient, $subject, $body, $headers); } ?>