Hi all,
Sorry the stupid question - new to PHP. I had a code working until I had to add drop-down menus to the web form - and now I get a "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING"
PHP code is reasonably simple:
<?php
$DestinationDir = "ftp://ftp.website.ca/";
$DestinationFile = $DestinationDir . $FILES['MyFile']['name'];
If (move_uploaded_file($FILES['MyFile']['tmp_name'], $DestinationFile)) {
Echo "File uploaded successfully! Click BACK to upload additional files.";
}Else{
Echo $FILES['MyFile']['error'];
}
// values sent from form
$MyName=$POST['MyName'];
$Phone=$POST['Phone'];
$Email=$POST['Email'];
$Company=$POST['Company'];
$Instructions=$POST['Instructions'];
$DueDate=$POST['DueDate'];
$FileType=$POST['FileType'];
$Platform=$POST['Platform'];
$MyContact="NAME: ".$POST['MyName']."\r\n"."PHONE: ".$POST['Phone']."\r\n"."EMAIL: ".$POST['Email']."\r\n"."COMPANY: ".$POST['Company']."\r\n"."COMMENTS: ".$POST['Instructions']"\r\n"."DUE DATE: ".$POST['DueDate']."\r\n"."FILE TYPE: ".$POST['FileType']."\r\n"."OS: ".$_POST['Platform']."\r\n";
mail($to='me@email.com', $subject='FILE UPLOADED TO FTP', $body=$MyContact, "The file "."\r\n".$_FILES['MyFile']['name']."\r\n". " has been uploaded to the FTP site, by ");
?>
I believe it's something having to do with the menus found in "File Type" (12 choices - not multiple), and in "Platform" (2 choices - not multiple).
What am I missing?
Thanks!
Michael