I am having some troubles with something...
I have my script essentially working as I expect.... but the data that I am capturing from certain input items is not what I want to capture.
I have a file input instance and it uploads the file to a FTP server via an INCLUDE php page. on that php page I have little if statements using isset...
Code: Select all
contined........
if(isset($_GET["FILE1"])) $FILE1=$_GET["FILE1"];
if(isset($_GET["FILE2"])) $FILE2=$_GET["FILE2"];
if(isset($_GET["FILE3"])) $FILE3=$_GET["FILE3"];
//Begin FTP process
if(isset($FILE1)) {
$destination_file1 = "/WA_FOO/BAR/".$lendername."-WIRE-".$loannumber.".pdf";
@ $upload1 = ftp_put($conn_id, $destination_file1, $FILE1, FTP_BINARY);
$FILE1 = "WIRE ";
}
if(isset($FILE2)) {
$destination_file2 = "/WA_FOO/BAR/".$lendername."-APAY-".$loannumber.".pdf";
@ $upload2 = ftp_put($conn_id, $destination_file2, $FILE2, FTP_BINARY);
$FILE2 = "APAY ";
}
if(isset($FILE3)) {
$destination_file3 = "/WA_FOO/BAR/".$lendername."-SEPT-".$loannumber.".pdf";
@ $upload3 = ftp_put($conn_id, $destination_file3, $FILE3, FTP_BINARY);
$FILE3 = "SEPT ";
}
......continued
looks like this....
Code: Select all
//Build upload_type string for logging
@ $upload_type = "".$FILE1."".$FILE2."".$FILE3."......continued
have tried various differnent methods and the solution escapes me at this moment.
Any help would be appreciated.
also comments about how to restructure this setup would be great as well.