Jquery form submit after confirn with setting submit button
<p>I am using JQuery and SimpleModal Confirm Modal Dialog to show a confirm box before uploading. The form is submitting fine but as i'm checking isset submit button in PHP therefore it fails. How could i submit post using JQuery with setting submit button. 
Here is the code</p>

<p>HTML</p>

<pre><code>&lt;form enctype="multipart/form-data" action="#duc" method="post" id="uploadform" &gt;
    &lt;input name="file" type="file" &gt;
    &lt;input name="Submit_upload" type="submit" value="Upload" id="Upload" &gt;
&lt;/form&gt;
</code></pre>

<p>JQuery</p>

<pre><code>jQuery(function ($) {
  $('#Upload').click(function (e) {
    e.preventDefault();
    confirm("Continue to the Upload?", function () {
        $('#uploadform').submit();
    });
  });
})
</code></pre>

<p>PHP</p>

<pre><code>if(isset($_POST['Submit_upload']) &amp;&amp; $_FILES['file']['name'])
{
    // file uploading process.
}
</code></pre>

<p>I think as after confirm JQuery submitting the form so the actual submit button is not adding in the post array. any help will be much appreciated.</p>
