title: Onclick Submit form Javascript with image buttons
body: <p>hey, well I have this form</p>
  
  <pre><code>    &lt;form method="POST" action=''&gt;
  &lt;input type="hidden" name="op" value="download1"&gt;
  &lt;input type="hidden" name="usr_login" value="&lt;TMPL_VAR usr_login&gt;"&gt;
  &lt;input type="hidden" name="id" value="&lt;TMPL_VAR file_code&gt;"&gt;
  &lt;input type="hidden" name="fname" value="&lt;TMPL_VAR file_name&gt;"&gt;
  &lt;input type="hidden" name="referer" value="&lt;TMPL_VAR referer&gt;"&gt;
  &lt;div class="premium-download"&gt;&lt;input name="method_premium" value="&lt;TMPL_VAR lang_premium_download&gt;" type="image" src="images/premium-download.png" alt="&lt;TMPL_VAR lang_premium_download&gt;" border="0" /&gt;&lt;/div&gt;
  &lt;div class="free-download"&gt;&lt;input name="method_free" value="&lt;TMPL_VAR lang_free_download&gt;" type="image" src="images/free-download.png" alt="&lt;TMPL_VAR lang_free_download&gt;" /&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>How can I submit the form from the image inputs (see the last two fields)?  Right now they are set as image type and I understand that those will not submit the form by default. Could anyone help? I was told to do it with javascript :D</p>