Here are the inputs I want to loop through
Main photo: Side photo 1:
Maybe:
Main photo: Side photo 1: Side photo 2: Side photo 3:
$i=1; while (isset($_FILES['image'.$i])) { print_r($_FILES['image'.$i]); $i++; }
If you have to loop through specific file fields.