$path="../";
$lang="en";
require_once($path."includes/global.inc.php");
if(isset($HTTP_POST_VARS["name"]))
{
$name = trim($HTTP_POST_VARS["name"]);
$org = trim($HTTP_POST_VARS["org"]);
$email = trim($HTTP_POST_VARS["email"]);
$conf = trim($HTTP_POST_VARS["conf"]);
$camp = trim($HTTP_POST_VARS["camp"]);
$pub = trim($HTTP_POST_VARS["pub"]);
$remarques = trim($HTTP_POST_VARS["remarques"]);
if(strlen($name)==0 or strlen($email)==0 or (strlen($conf)==0 and strlen($camp)==0 and strlen($pub)==0))
$warning .= "All the (*) fields are obligatory !
";
if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,5}$", $email))
$warning .= "Incorrect e-mail address !
";
if(!isset($warning)){
$subject="Inscription à la mailing list du CETIM";
$body .= "> Demande en anglais
";
$body .= "";
$body .= "Inscription à la mailing list du CETIM
";
$body .= "
";
$body .="Nom: ".$name."
";
$body .="Organisation: ".$org."
";
$body .="Email: ".$email."
";
$body .="Remarques:
".stripslashes(str_replace(chr(13),"
",$remarques))."
";
$body .="Je souhaite être informé sur :
";
if ($conf==1)
$body .= "- les conférences du CETIM à Genève
";
if ($camp==1)
$body .= "- les campagnes menées par le CETIM
";
if ($pub==1)
$body .= "- la dernière publication du CETIM
";
mail($email_default,$subject,$body,"From: contact@cetim.ch\r\n"."MIME-Version: 1.0\r\n"."Content-type: text/html; charset=iso-8859-1\r\n","-r contact@cetim.ch");
$status = "ok";
}
}
?>
Your request has been sent }else{?>";?> |