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