[php]$allowed_extensions = array(“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”, “application/vnd.ms-excel”);
if( ( $_FILES[‘ppm’][‘type’] != $allowed_extensions[0] || $_FILES[‘ppm’][‘type’] != $allowed_extension[1]) )
{
echo “Bad file type”;
exit();
}[/php]
the above code is basically supposed to get the file type of the file uploaded to the form and compare it to both elements in the array. The files needs to be either xls or xlsx format so if it isn’t in either xls or xlsx it echos bad file type and exit out of php code and doesn’t do the rest of the code… I hope what I’ve said makes since , however I know I’m bad at explaining things … but I do appreciate the help.