title: Downloading multiple files at the same time having checkboxes
body: <p>I have a HTML page which has the following code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script language="JavaScript" type="text/javascript"&gt; 
  
  function validate(frm)
  {
    var count = 2;
    var allChecked = false;
    for(i=1; i&lt;=count; i++)
    {
      if( document.getElementById('track_'+i).checked == true)
      {
          allChecked = true;
          break;
        }
    }
      if(!allChecked)
      {
          alert("Please select atleast one track");
      }
      return false;
  }
  
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;form method="get" onSubmit="validate(this);"&gt;
  
  &lt;input type="checkbox" value="01 - Sun Beliya - Lata, SP Balasubramaniam @ Fmw11.com.mp3" id="track_1" name="track_1"&gt;&lt;a href ="01 - Sun Beliya - Lata, SP Balasubramaniam @ Fmw11.com.mp3"&gt;01 - Sun Beliya - Lata, SP Balasubramaniam @ Fmw11.com.mp3  &lt;/a&gt; &lt;br&gt;
  &lt;input type="checkbox" value="02 - Gabbar Singh Yeh Kah - Alka Yagnik, Amit Kumar @ Fmw11.com.mp3" id="track_2" name="track_2"&gt;&lt;a href ="02 - Gabbar Singh Yeh Kah - Alka Yagnik, Amit Kumar @ Fmw11.com.mp3"&gt;02 - Gabbar Singh Yeh Kah - Alka Yagnik, Amit Kumar @ Fmw11.com.mp3  &lt;/a&gt;&lt;br&gt;
  &lt;input type="submit" value="Download" &gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to download both files at the same time i.e. when both checkboxes are selected then both files should be downloaded.</p>
  
  <p>How should I do it?</p>