Hi
I had an field to upload pdf's only, which worked well. I want to add the option to add docs as well as pdf's and now it is not working:
if (!empty($_FILES['pdf_main']['name']) && ($_FILES['pdf_main']['type']!="application/pdf" || $_FILES['pdf_main']['type']!= "application/msword")){
echo '<p class="white">Please check the certificate uploaded. It should be a PDF or Word Document.<br /></p>';
$found_error = "True";
}
If I only have one or the other file type, then it works. Can anyone see where I'm going wrong?
Many thanks