$value){ ((trim($value)==$index)||(trim($value)==''))?$error.=$index.', ':null; } $_POST['email']=filter_var($_POST['email'], FILTER_SANITIZE_EMAIL); (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL))?null:$error.='E-mail, '; if($error==''){ $boundary = "_".md5 (uniqid (rand())); $headers ="From: ".$_POST['email']." \r\n"; $headers .= "MIME-Version: 1.0\r\nContent-Type: multipart/mixed; boundary=\"$boundary\"\r\n"; $body = "--". $boundary ."\nContent-Type: text/plain; charset=ISO-8859-1\r\n\n".$_POST['Prénom'].' '.$_POST['Nom'].' '.$_POST['Statut'].' à '.$_POST['Institution']." souhaite s'inscrire à l'école d'été.\r\n".stripslashes($message); mail('Stephane.Lamasse@univ-paris1.fr','Inscription à l\'école d\'été',$body,$headers); echo 'Le message a bien été envoyé'; } else{ echo 'Les informations transmises ('.substr($error,0,-2).') sont erronées, veuillez remplir le formulaire à nouveau.'; } } unset($_POST); ?>

Inscriptions

Les inscriptions sont closes.

Formulaire d'inscription
* */ require_once('postarticle.html') ?>