$title ='Mike\'s Contact Page';
//CONTENTS Contact
require 'stdhead.php';
?>
Contact Me
////////////
// If a comment has been sent
////////////
if(isset($_REQUEST['mailsubmit']) && isset($_REQUEST['sendercomment']) && isset($_REQUEST['senderaddress'])){
$from = $_REQUEST['senderaddress'];
// Remove all illegal characters from email
$from = filter_var($from, FILTER_SANITIZE_EMAIL);
// Validate e-mail
if (filter_var($from, FILTER_VALIDATE_EMAIL)) {
mail('mikeb@mikebanahan.com', 'EMAIL from Home Page', $_REQUEST['sendercomment'],
"From: ${_REQUEST['senderaddress']}");
echo "Thank you for submitting your comment. If appropriate we will try to respond as soon as possible but cannot promise to respond to every message.";
} else {
echo("Sorry, $from is not a valid email address");
}
////////////
}else{
////////////
?>
Comments are welcomed but feedback cannot be guaranteed. I make efforts to read all intelligent and literate
feedback and particularly welcome factual corrections, suggestions for improvements and information about omissions.
PLEASE check your email address before contacting me if you hope to receive a reply.
////////////
}
////////////
?>
require('stdfoot.php');
?>