<?php
// Swish/PHP Email Form v.2 was created by Brian Ayers of Swish-Tutorials.com
// Unless a Donation is made for these form files - this copyright should remain intact
// Please Link directly to the main site - www.swish-tutorials.com
// IMPORTANT NOTE: DO NOT change anything that has a $ before it
// Any line that has two slashes in front of it is a comment (and will be ignored by this script)
// In case register globals is off
$message = $HTTP_POST_VARS['Message'];
$name = $HTTP_POST_VARS['Name'];
$email = $HTTP_POST_VARS['Email'];
// Begin Censors
$message = eregi_replace('fuck', "flip", $message);
$message = eregi_replace('shit', "crap", $message);
$message = eregi_replace('bitch', "nice lady", $message);
$message = eregi_replace('ass', "butt", $message);
$message = eregi_replace('piss', "pee", $message);
// End Censors
// Remove Slashes Inserted by PHP
$name = stripslashes($name);
$email = stripslashes($email);
$message = stripslashes($message);
// Start Customizable Email Information
// Change the information in quotes below to fit your needs
$rec_email = "brian@purifiedproductions.com"; // who do you want to send this email to
$subject = "Test Messages from Swish PHP Email Form v2"; // this is the subject line of the email
// End Customizable Email Information
// Add Some Extra Header Information to the Mail
$header_info = "From: ".$name." <".$email.">";
// The Body of the Email message
// You can customize the email you receive by changing the text inside the quotes below
// IMPORTANT NOTE: DO NOT change anything that has a $ before it
$msg_body = "Name: $name\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Comments: $message\n\n\n";
$msg_body .= "The Sender's IP Address was recorded as: $REMOTE_ADDR\nEmail Form provided by Swish-Tutorials.com";
// Now let's take the information above and mail it to the recipient
mail($rec_email, $subject, $msg_body, $header_info);
// Swish/PHP Email Form v.2 was created by Brian Ayers of Swish-Tutorials.com
// Unless a Donation is made for these form files - this copyright should remain intact
// Please Link directly to the main site - www.swish-tutorials.com
?>
Ik heb alleen het e-mailadres in het dikgedrukte gedeelte veranderd naar mijn adres.
laatste aanpassing 31 mei 2005 18:05