PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
I need to be able to allow a Word document and a pdf only to be uploaded and was trying to use the code below. However this is simply not uploading at all. This is what I was using.
<?PHP
if (isset($_FILES['fupload'])){
if ($_FILES['fupload']['type'] == 'application/msword' ) { // etc ?>
….then this will allow me to upload a Word doc or PDF (if I change 'application/msword' msword' to 'application/pdf using them individually’) but I can’t get the script to run with both together using an array.