PHP inclure un array dans une fonction mail
Résolu/Fermé
A voir également:
- PHP inclure un array dans une fonction mail
- Yahoo mail - Accueil - Mail
- Fonction si et - Guide
- Publipostage mail - Accueil - Word
- Créer une adresse mail hotmail - Guide
- Windows live mail - Télécharger - Mail
1 réponse
la solution était simple dsl pour le dérangement,
la fonction implode("separator", array); fait ça très bien
la fonction implode("separator", array); fait ça très bien
<?php $destinataire = 'fabien@laplumesurlatoile.com'; $sujet='questionnaire'; $FORM1=$_POST['sexe']; $FORM2=$_POST['age']; $FORM3=$_POST['profession']; $FORM4=$_POST['commandesautres']; $FORM5=$_POST['raisons']; $FORM6=$_POST['raisonsautres']; $FORM7=$_POST['delai']; $FORM8=$_POST['symbole']; $FORM9=$_POST['symboleautre']; $FORM10=$_POST['conditionnement']; $FORM11=$_POST['frequenceachat']; $FORM12=$_POST['preferences']; $FORM13=$_POST['habitude']; $FORM14=$_POST['montant']; $FORM15=$_POST['souhaitssite']; $FORM16=$_POST['autressouhaitssite']; $FORM17=$_POST['infos']; $tableau = array ($FORM1, $FORM2, $FORM3, $FORM4, $FORM5, $FORM6, $FORM7, $FORM8, $FORM9, $FORM10, $FORM11, $FORM12, $FORM13, $FORM14, $FORM15, $FORM16, $FORM17); $afficher_check = ""; mail($destinataire, $sujet, implode(" - ",$tableau)); ?>