';
print_r($referer);
print '';
exit;
header('Location: ' . REDIRECT_BAD_REFERER);
exit;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Get POST data,
// submitted data is cut off at 150 characters for name and email,
// and 10000 characters for the message
//
$firstname = substr(trim($_POST['firstname']), 0, 150);
$lastname = substr(trim($_POST['lastname']), 0, 150);
$messagesubject = substr(trim($_POST['messagesubject']), 0, 350);
$email = substr(trim($_POST['email']), 0, 150);
$message = substr(trim($_POST['message']), 0, 10000);
//~~~~~~~~~~~~
// Send mail
//
$mail = 'The following Message was sent to you from WebmasterSeminar.com:' . NL . NL;
$mail .= ($firstname != '') ? 'First Name: ' . $firstname . NL : false;
$mail .= ($lastname != '') ? 'Last Name: ' . $lastname . NL : false;
$mail .= ($messagesubject != '') ? 'Message Subject: ' . $messagesubject . NL : false;
$mail .= 'Email: ' . $email . NL . NL;
$mail .= $message;
$mail = str_replace("\r", '', $mail);
mail(RECIPIENT, SUBJECT, $mail, 'From: ' . $email . NL .
'X-Mailer: WembasterSeminar.com Mail Robot' . NL);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Redirect to REDIRECT_SUCCESS page
//
header('Location: ' . REDIRECT_SUCCESS);
exit;
} else {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set session cookie as attempt to avoid
// automated spam scams
//
$_SESSION['x'] = 'scumartist';
if (isset($_POST['submit'])) {
$error_message = 'Your email could not be send,
please fill in all required fields';
}
}
?>
Webmaster Online Seminar - Feedback
Feedback
Contact Webmaster Seminar
Contact Webmaster Seminar
Feedback - Submit Your Tutorial Article or Review: If you would like to comment or submit an Article, a Review, or a Tutorial to Webmaster Seminar please contact us.
All submitted articles and information will be credited and linked back.
Contact Webmaster Seminar: