Send a message
Comments and inquiries are welcomed! Please use the following form to contact me.
Please enter your name.
';
}
else if(trim($email) == '') {
$error = '
Please enter a valid email address.
';
}
else if(!isEmail($email)) {
$error = '
You have entered an invalid email address, try again.
';
}
else if(trim($comments) == '') {
$error = '
Please enter your message.
';
}
if($error == '') {
if(get_magic_quotes_gpc()) {
$comments = stripslashes($comments);
}
$admin = "dl.friedman75@gmail.com";
$subject = 'DL Friedman contact form submission';
$reply = "You can contact $name via email - $email.";
$msg = "Visitor's name: $name\r\n\nMessage: $comments\r\n\n\n$reply";
mail($admin, $subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n");
// Email has sent successfully, echo a success page.
echo "
";
echo "Your inquiry has been sent!
";
echo "Thank you $name, we will respond shortly.
";
echo "
";
}
}
if(!isset($_POST['contactus']) || $error != '')
{
?>