$path="../";
$lang="fr";
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 .= "Tous les champs (*) sont obligatoires !
";
if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,5}$", $email))
$warning .= "Adresse email incorrecte !
";
if(!isset($warning)){
$subject="Inscription à la mailing list du CETIM";
$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";
}
}
?>
Votre demande a été envoyée }else{?>";?> |