function send_form() {
global $PHP_SELF;
?> In general, the best way to contact me is to use the form provided below. It assists me in sorting incoming mail, which allows me to respond to your questions and comments faster.
However, if you experience problems using this form, or you'd feel more comfortable emailing me directly, you can reach me at <ben@gaminghaven.com>.
}
function process_form() {
global $person, $subject, $message;
if(!empty($person["name"]))
$Name = $person["name"];
else
$Name = "Anonymous Viewer";
if(!empty($person["email"]))
$Email = $person["email"];
else
$Email = "anon@". $global["REMOTE_HOST"];
if($subject["othertext"] != "(Other Subject)")
$Subject = $subject["othertext"];
if(empty($message)) {
echo "I'm sorry, but the contents of the form you submitted seemed to be empty. Please the form below again, or contact me via the email address provided below.\n";
echo "
\n";
send_form();
return;
}
else {
mail("webmaster@gaminghaven.com", "$Subject", $message,
"From: $Name <$Email>\nX-Mailer: PHP/" . phpversion());
echo "Thank you, $Name. You questions, comments, and suggestions help keep this site running. If you have in questions or comments in the future, please don't hesistate to share them with me. I do my best to answer every email sent to me.For your reference, here is a copy of the email you just sent:\n";
echo "
\n";
echo "From: $Name <". $person["email"] .">
\nSubject: $Subject\n$message
\n";
echo "
\n";
}
}
require("$DOCUMENT_ROOT/includes/v2/shared.inc");
$PageTitle = "Contact Form";
include("$DOCUMENT_ROOT/includes/v2/header.inc");
?>
|
if(empty($stage)) { send_form(); } else { process_form(); } ?>
|
include("$DOCUMENT_ROOT/includes/v2/footer.inc");
?>