Hi, I'm French so I maybe not speak english very well.
I'm trying to "put" the result of a foreach loop in a varible like that :
$msg = '<html><head>
<title>Commande de photos</title>
</head><body>
<p>Voici la liste des photos demandées :<br />
<ul> HERE I WANT TO "PUT" THE RESULT OF THE FOREACH LOOP</ul>';
Here is my foreach loop:
foreach($tab as $val){
echo('<li>'.$val.'</li>');
}
Then the $msg enter in the composition of the funtion mail() like that:
mail($destinataire,$sujet,$msg,$headers);
So how can I do to include the result of foreach in a message because I have already a bug ! Thanks
Pico