$path="../";
$lang="es";
require_once($path."includes/global.inc.php");
if(isset($HTTP_POST_VARS["name"]))
{
$name = trim($HTTP_POST_VARS["name"]);
$year = trim($HTTP_POST_VARS["year"]);
$org = trim($HTTP_POST_VARS["org"]);
$address = trim($HTTP_POST_VARS["address"]);
$city = trim($HTTP_POST_VARS["city"]);
$country = trim($HTTP_POST_VARS["country"]);
$phone = trim($HTTP_POST_VARS["phone"]);
$email = trim($HTTP_POST_VARS["email"]);
$remarques = trim($HTTP_POST_VARS["remarques"]);
$member = trim($HTTP_POST_VARS["member"]);
if(strlen($member)==0 or strlen($name)==0 or strlen($address)==0 or strlen($city)==0 or strlen($country)==0 or strlen($phone)==0 or strlen($email)==0)
$warning .= "Todos los campos (*) son obligatorios
";
if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,5}$", $email))
$warning .= "Dirección e mail incorrecta
";
if(!isset($warning)){
$subject="Nouveau membre CETIM";
$body .= "> Demande en espagnol
";
$body .= "";
if ($member==1)
$body .= "je souhaite devenir membre individuel
";
elseif ($member==2)
$body .= "je souhaite devenir membre de soutien
";
elseif ($member==3)
$body .= "nous souhaitons devenir membre collectif
";
elseif ($member==4)
$body .= "nous souhaitons devenir membre collectif de soutien
";
elseif ($member==5)
$body .= "je désire devenir un sympathisant du CETIM
";
$body .= "
";
$body .="Nom: ".$name."
";
$body .="Année de naissance: ".$year."
";
$body .="Organisation: ".$org."
";
$body .="Adresse: ".$address."
";
$body .="NPA / Ville: ".$city."
";
$body .="Pays: ".$country."
";
$body .="Téléphone: ".$phone."
";
$body .="Email: ".$email."
";
$body .="Remarques:
".stripslashes(str_replace(chr(13),"
",$remarques))."
";
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";
}
}
?>
Su pedido ha sido enviado }else{?>";?> |