Unset item from Array $_FILES upload
问题 I have a script where users can upload multiple files (max. 8). The HTML is generated by a piece of PHP: $max_no_img=8; for($i=1; $i<=$max_no_img; $i++){ <div class='photo photo$i'> <div class='new_label'> Foto $i: </div> <div class='new_input'> <input type='file' name='images[]' /> </div> </div>"; } So the array images[] consists of 8 values. However, every time a user submit it's form, the form is generating an Array of 8 items and by so, inserting 8 values in the database (whether they are