I have 2 forms:
- Form A contains field name, age, address, email and a hidden text field for the names of images which are going to be uploaded in form B. 
- Form B contain an input type File so users can browse and select their photos. 
- I used Jquery to trigger an function upload those images after they are selected. 
- I'm stuck at the step passing the selected images array to the PHP file that handles upload progress via AJAX. 
- I searched but there were no samples for my problem. I appreicate any help. - <form action="upload_img.php" name="form_B" method="POST" enctype="multipart/form-data"> Select images: <input type="file" name="selected_imgs[]" id="selected_imgs" multiple> </form> <script type="text/javascript"> $(function() { $("input:file").change(function (){ ajax_upload(); }); }); </script>
 
     
    