[insert_php]

if ($_POST) {

$hash = ”;
$hashraw = htmlspecialchars($_POST[‘md5’], ENT_QUOTES);
$hashraw = trim($hashraw);
if (strlen($hashraw) == 32 && ctype_xdigit($hashraw)) {
$hash = $hashraw;
}

$name = ”;
$nameraw = htmlspecialchars($_POST[‘givenname’], ENT_QUOTES);
$name = trim($nameraw);

$emailSubject = ‘Unsubscribe request!’;
$webMaster = ‘admin@sakala.co.uk’;

$body = “\r\n Name: ” . $name . “\r\n md5: ” . $hash;
$body = nl2br ($body);

$headers = “From: admin@sakala.co.uk\r\n”;
$headers .= “Content-type: text/html\r\n”;

if (!defined(‘mail_sent’)) {

$success = mail($webMaster, $emailSubject, $body, $headers);
define(‘mail_sent’, TRUE);

}

}

[/insert_php]

We’re truly sorry to see you go, [insert_php] echo $name;[/insert_php].

But we understand and hope to see you another time!

In the meantime your details have been removed from our mailing lists.