I'm in the process of learning file uploading and PHP, so apologies if I can't describe myself properly.
I'm trying to create a form for uploading up to 5 images. My problem is a logical operator that wouldn't necessitate 4th or 5th image. Currently if I upload 4 images, the program stops uploading at the 3rd image.
if ((move_uploaded_file($_FILES["image1"]["tmp_name"], $target_file.".".$image1FileType)
&& move_uploaded_file($_FILES["image2"]["tmp_name"], $target_file2.".".$image2FileType)
&& move_uploaded_file($_FILES["image3"]["tmp_name"], $target_file3.".".$image3FileType))
|| move_uploaded_file($_FILES["image4"]["tmp_name"], $target_file4.".".$image4FileType)
|| move_uploaded_file($_FILES["image5"]["tmp_name"], $target_file5.".".$image5FileType)
)