 <p>"upload" here <code>$_FILES['upload']</code> refers to the name of the file field in the form.<br> you are only ckecking if a file from the file field named upload has been uploaded <br> <br> did you maybe name the first upload field in the form differently?</p>