Sending additional fields data with Uploadify
<p>I want to send some additional (form) fields data with uploadify. For this purpose, I am using scriptData. For example, following code sends the static values of name and location field correctly. </p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function() {
    $("#fileUpload").fileUpload({
        'uploader': 'uploadify/uploader.swf',
        'cancelImg': 'uploadify/cancel.png',
        'script': 'uploadify/upload.php',
        'folder': 'files',
        'multi': false,
        'displayData': 'speed',
        'scriptData': {'name':'JohnDoe', 'location':'Australia'}

    });
});
&lt;/script&gt;
</code></pre>

<p>However, as I have the input fields name and location, therefore I want to send the dynamic values. To do so, Im sending the values in ScriptData as following</p>

<pre><code>'scriptData' : {'name' : $('#name').val(), 'location' : $('#location').val()}
</code></pre>

<p>And on upload.php, I'm trying</p>

<pre><code>$name = $_GET['name'];
$location = $_GET['location'];
</code></pre>

<p>But it does not get any of the values. Please help me regarding this, how I can send additional fields data. Thanks.</p>
