title: Uploadify: Passing a form's ID as a parameter with scriptData
body: <p>I need the ability to have multiple upload inputs on one page (potentially hundreds) using Uploadify. The upload PHP file will be renaming the uploaded file based on the ID of the input button used to submit it, so it will need that ID. </p>
  
  <p>Since I will be having hundreds of upload buttons on one page, I wanted to create a universal instantiation, so I did this using the class of the forms rather than the ID of the forms. However, when one of the inputs is clicked, I would like to pass the ID of that input as scriptData to the PHP. This is not working; PHP says 'formId' is undefined.</p>
  
  <p>Is there a good way get the ID attribute of the form input being used, and passing it to the upload PHP? Or is there a completely different and better method of accomplishing this? Thank you in advance!!</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
        $('.uploady').uploadify({
          'uploader'  : '/uploadify/uploadify.swf',
          'script'    : '/uploadify/uploadify.php',
          'cancelImg' : '/uploadify/cancel.png',
          'folder'    : '/uploadify',
          'auto'      : true,
        // LINE IN QUESTION
        'scriptData'  : {'formId':$(this).attr('id')}
    });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>The inputs look like this:</p>
  
  <pre><code>&lt;input id="file_upload1" class="uploady" name="file_upload" type="file" /&gt;
  &lt;input id="file_upload2" class="uploady" name="file_upload" type="file" /&gt;
  &lt;input id="file_upload3" class="uploady" name="file_upload" type="file" /&gt;
  </code></pre>