title: Show modal dialog after form submitted
body: <p>I have a form  that after submitting downloads  file . I want automatically instead of download automatically the file ..to show a modal-dialog and display the download link.      </p>
  
  <pre><code>&lt;form name="softwareform" id="softwareform" action="../downloadlink.php" method="POST" align="left"&gt;
    &lt;div class="input-group margin-bottom-sm"&gt;
        &lt;span class="input-group-addon"&gt;
           &lt;i class="fa fa-windows fa-fw"&gt;&lt;/i&gt;
        &lt;/span&gt;
        &lt;input class="form-control" type="text" placeholder="Software Title" name="softtitle" id="softtitle"&gt;
    &lt;/div&gt;
  
    &lt;button type="submit" class="btn btn-primary"  &gt;
        &lt;i class="fa fa-cogs"&gt;&lt;/i&gt;Download File
    &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>In the download link.php i am redirecting after process using header to the download file.
  Here is the modal dialog i want to shown .</p>
  
  <pre><code>&lt;div class="modal fade bs-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"&gt;
     &lt;div class="modal-dialog modal-sm"&gt;
        &lt;div class="modal-content" id="dialog-download"&gt;
           &lt;br/&gt;&lt;br/&gt;
           &lt;h2&gt;Your Download is ready.&lt;/h2&gt;
           &lt;hr/&gt;
           Your Download link is here &lt;br/&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can i show this dialog after form submitting?
  Thanks In advance</p>