natürlich geht das ... schau Dir mal die Funktion in_array an. Versuche Dich dochmal damit und bau Deinen Code um. Bei Fragen poste Deinen Versuch und Dir wird sicherlich geholfen :)
Viele Grüße!
Holger
Hallo Holger, danke für den Tipp !
ich habe das jetzt so gelöst.
$filetyp = array(  
"application/pdf",  
"text/html", "image/jpeg",       "image/pjpeg", "image/gif",  
"application/vnd.ms-excel",       "application/ms-excel" );  
  
  
if (in_array($_FILES['graph']['type'], $filetyp))  
{  
$filetyp='ok';  
}  
   if  
($_POST['sub'] && $filetyp== 'ok' && !$error[0] && !$error[1])  
  
     { // alles Ok geht weiter  
      }else {  
 $error[2] ="<span class='error'><br>Kein gültiges Format.</span>";  
 }  
error[0] wenn Datei zu groß und error[1] wenn doppelt.
Ich hoffe das ist akzeptabel.
Es funktioniert
Danke
Andy