get attachment filename to affix to email msg

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

get attachment filename to affix to email msg

Post by sticcino »

Hi,

having stupid moments lately....

need to have user select file to attach to the ewmail10.php form, but after doing so, i can' seem to retrieve the file name

in ewmail10 (extra code removed):

<form id="ewEmailForm" class="ewForm form-horizontal" enctype="multipart/form-data" action="<?php echo ew_CurrentPage() ?>" method="post">

MODIFIED ABOVE FORM TO INCLUDE: enctype="multipart/form-data" / method=post

<input type="hidden" name="export" id="export" value="email">
<div class="ewEmailContent">
<div class="control-group">
<label class="control-label" for="files"><?php echo "Attachments" ?></label>
<div class="controls"><input type="file" name="attachments" id="attachments"></div>
</div>
</div>
</form>
I can select the file to attach to the message and it is displayed on the form....


in the: function ExportEmail($EmailContent)

i look at the global $FILES object:
$sAttachments = $
FILES["attachments"]["name"];

$sAttachments is empty

the $_FILES["attachments"]["error"] is empty....

any insight on how this works appreciated.
Thanks,
Johnny


sticcino
User
Posts: 1043

Post by sticcino »

why the ewemail10.php doesn't post the $_FILE information?


Post Reply