multiple instances within the same form?

Last post 01-10-2012, 10:31 PM by ShadowJohn. 1 replies.
Sort Posts: Previous Next
  •  01-06-2012, 2:25 AM 72523

    multiple instances within the same form?


    I have a system for answering questionnaires that has been in use for several years. I wish to add picture questions to the questionnaire.
    Curreently each question type is a single textarea,select box,series of radio buttons or checkbox buttons all questions are presented in a single HTML form. Can I just put a new instance of phpuploader for each picture question? and as I want only one file uploaded per question turn off all the multifile upload bits??, setting  the savedfile variable to where I want each file uploaded and then in the main form just test that the file exists to check that the user has uploaded the file??
     
         If so this will be brilliant, just wondering how it works because that would seem to be like a form within a form which is a no no in HTML.
     
     
        Maybe I am missing something - I am fairly php savey but a novice at jscript.
     
    Cheers
            John B

    John Brooker Director Shadow Organisation P/L
    Based in Coffs Harbour Australia.
  •  01-10-2012, 10:31 PM 72606 in reply to 72523

    Re: multiple instances within the same form?

    Update...
     
    worked like magic, used demo2 as the basis as I wanted to manipulate the files on receipt. made sure I had a separate name for each instance and all pointed to teh same upload receiver with varying query strings...
     
    Great script saved me many hours...
     
    Cheers
            John B

    John Brooker Director Shadow Organisation P/L
    Based in Coffs Harbour Australia.
View as RSS news feed in XML