Hi,
check your code here. 6,7,8,9
for($c=0;$c<8;$c++){
if(isset($_FILES'])) {
You have indicated for loop with 8 iterations.
On your upload form its less than that. Not a good sign.
why cant you do it simple like
for($i=0;$i<count($_FILES);$i++)// U can use $_FILES super global array to catch all files. Thus my view. also count() and sizeof() works the same.
{
if($_FILES['uploaded_file['.$i.']){
//CHECK UP YOUR LOGIC FROM HERE
THAT IS THE SECOND IF STATEMENT.
}
My advice is make it simple and build on it. Divide and conquer.
I can only point you to a simple and right direction. Get back to me if you can.