View Single Post
Old 09-05-2008, 04:46 AM   #1 (permalink)
Peuplarchie
The Acquainted
 
Peuplarchie's Avatar
 
Join Date: May 2008
Location: Québec
Posts: 104
Thanks: 10
Peuplarchie is on a distinguished road
Application array to email...

Good day to you all,
I was wondering how can I make my array listed in my email script below.
I know how to send an e-mail, I pass it through a form...

Here is it:

PHP Code:

 <?php
$pics 
$_POST["pics"];


foreach (
$pics as $p) {
echo 
$p."<br />";
}






$to "franck@peuplies.info, fbeausol@justice.gc.ca";
$from_header "From: franck@peuplies.info";

$subject "Salut Marc, voici le choix d'Andrew.";
$contents "$pics";
if(
$contents != "$p")
{
   
//send mail - $subject & $contents come from surfer input
   
mail($to$subject$contents$from_header);
   
// redirect back to url visitor came from
   
header("Location: images.php?folder=Andrew/View");
}
  else
{
   print(
"<HTML><BODY>Error, no comments were submitted!");
   print(
"</BODY></HTML>");
}







?>

Thank for any help with this !
__________________
That's why we are not alone on earth... let's build !
Peuplarchie is offline  
Reply With Quote