I have a form, http://www.houstonasp.com/become_a_provider.shtml
with 6 possible image uploads. I'm lost on how to grab each of the images (if an image is selected and email it to myself as an embedded image using PHPMailer
I have this code,
$mail->AddEmbeddedImage("/absolute/path/to/image.gif", 1001, 'imagename.gif');
To add the embedded image but to loop it through my array of images, is this ok?
foreach($_FILES as $key1 => $value1){
foreach($value1 as $key2=>$value2){
if($key2=='tmp_name'){
$mail->AddEmbeddedImage($_FILES[$key1][$key2], 1001, $_FILES[$key1]['name']);
}
}
}
But How do I assign the cid:1001 to each image?