rendered paste body<?php
$msg = $_POST['uname'] . "\r\n";
$msg .= $_POST['firstname']. ' '.$_POST['lastname']."\r\n";
$from = trim($_POST['email']);
$msg .= $_POST['referedby'] . "\r\n";
$msg .= $_POST['comments'] . "\r\n";
$subject = "Worxtech Contact Request";
if(isset($_POST['radio'])){
switch ($_POST['radio']) {
case 1:
$email_address='poppabear@worxtech.com';
break;
case 2:
$email_address='pip2kk@gmail.com';
break;
case 3:
$email_address='support@aeonhosting.com';
break;
case 4:
$email_address='mike@worxtech.net';
break;
default:
echo "Please select a contact";
include('contact.html');
exit();
}
}
if($msg && $from) {
mail($email_address, $subject, $msg, "From: $from\nReply-To: $email_address\nX-Mailer: PHP/" . phpversion());
echo "Message Sent, Thank you for you feedback " . $name;
} else {
echo "All fields must be filled in!<BR>";
}
}
?>