Alors voici les manips que j'ai executées :
Pour nommer la variable :
<input name="attach" type="file" size="16">
<input name="titre_piece" type="hidden" value="logo">
Pour l'envoyer :
if ($_POST['piece_jointe'] != 0) {
$partie_piece = "<font face='Verdana' size='2' color='#003366'>" . $_POST['titre_piece'] . " = " . $_POST['attach'] . "</font><br>";
}
Le probleme vient certaienement du header :
$headers ="MIME-Version: 1.0 \n";
$headers .="From: expediteur<email expediteur>\n";
$headers .="Content-Type: text/html; charset=iso-8859-1 \n";
$subject = "Inscription dans l'annuaire";
$partie_entete = "<html><head>
<meta http-equiv=Content-Type content=text/html; charset=iso-8859-1>
</head><body bgcolor=#FFFFFF>";
Mais si je change juste Content-Type: text/html; par multipart/mixed c'est pas concluent non plus.En essayant tout ce que j'ai pu trouver sur le net, je trouve pas de solutions valable
bye
celine