Uploaded file names not passed to email.
I have a form where I upload files, store the file names in the database and then send an email to the client. I store the information in hidden fields and everything but the uploaded file names are being passed. Everything but echoing the file names in the email is working correctly.
Upload Page:
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "clientuploads/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "0",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["UploadButton"]) || isset($_POST["UploadButton_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "clientfiles1", "0", "", "false", $WA_UploadResult1_Params);
}?>
<input name="File1" type="hidden" id="File1" value="<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["WA_UploadResult1_1"]["serverFileName"]; ?>">
Email Page:
<?php echo((isset($_POST["File1"]))?$_POST["File1"]:"") ?>
I also tried <?php echo $_SESSION['clientupload_files_clientfiles1']; ?>
The upload page allows you to upload up to 5 files.