RonnyNishimoto
07-18-2012, 12:22 AM
$allowed = array("jpg", "jpeg", "gif", "png");
if ($_FILES["file"]["type"] == "images/"(for(i = 0; i < count($allowed); i++))) {
}
else {}
How would I make this work? It would be "images/(each file type in the array)".
if ($_FILES["file"]["type"] == "images/"(for(i = 0; i < count($allowed); i++))) {
}
else {}
How would I make this work? It would be "images/(each file type in the array)".