Hi all,
I have confused myself with the $attachments['field_name'] I am trying to get the url and file name info in an email to automate posting some images.
My Form Code
My Email Template Code
But I cant get the image name to echo - I have also tried {file_1} and in both I get a blank after the url.
Any ideas guys?
I have confused myself with the $attachments['field_name'] I am trying to get the url and file name info in an email to automate posting some images.
My Form Code
<div class="form_item">
<div class="form_element cf_fileupload">
<label class="cf_label" style="width: 150px;">Photo 1</label>
<input class="cf_fileinput cf_inputbox" title="file_1" size="20" id="file_1" name="file_1" type="file" />
<a class="tooltiplink" onclick="return false;">
<img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Photo 1 :: We accept JPG/GIF/PNG and BMP Image type files only. We will resize the photos for you.</div>
</div>
<div class="cfclear"> </div>
</div>
My Email Template Code
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">Photo 1 Url Link: </label>http://mywebsite.com/images/carssales/<?php echo basename($attachments['file_1']);?>
</div>
</div>
But I cant get the image name to echo - I have also tried {file_1} and in both I get a blank after the url.
Any ideas guys?