Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   How to get the inline elements for file upload. (http://www.go4expert.com/forums/inline-elements-file-upload-t23933/)

ungalnanban 20Nov2010 14:21

How to get the inline elements for file upload.
I have wrote the following code into my JavaScript function for generating dynamic(n no of) file upload field. the inline code write into div tag

  for(i = 1; i <= count_1; i++) {
  code = code + "<textarea rows=2 cols=21 name=Description" + i
        + "  id=Description" + i + "></textarea>";

  for(j = 0; j < arr.length; j++) {
      code = code + "<input type=file  name=file" + j
            + "  id =file" + j + " class='browser' />";

document.getElementById('range_type').innerHTML = code;

while submitting the form I get the Descriptions. but I'm unable to get the $_FILES details. I have used the form method is POST.
I have set the folowing attributes into my form tag.

  name = example
onsubmit='return validate form()'

How to get the $_FILES details for uploading the files.

All times are GMT +5.5. The time now is 22:46.