All pastes #235197 Raw Edit

Stuff

public text v1 · immutable
·published 2006-11-03 02:14 UTC
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_address='poppabear@worxtech.com'; }
elseif(isset($_POST['radio']) && $_POST['radio']===2){  $email_address='pip2kk@gmail.com'; }
elseif(isset($_POST['radio']) && $_POST['radio']===3){  $email_address='support@aeonhosting.com'; }
elseif(isset($_POST['radio']) && $_POST['radio']===4){  $email_address='mike@worxtech.net'; }
else {
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>"; 
}
} 
?>