title: How to get value from a form element of type="button"
body: <p>I have the following code within a form</p>
  
  <pre><code>&lt;input type="button" name="nameofbutton" value="VALUE 1" onclick="javascript:if (confirm('Are you sure?')) {someSubmitFunction();}"/&gt; 
  &lt;input type="button" name="nameofbutton" value="VALUE 2" onclick="javascript:if (confirm('Are you sure??')) {someSubmitFunction();}"/&gt; 
  </code></pre>
  
  <p>When the form is submitted, with classic ASP I try and use<code>Request.Form("nameofbutton")</code> but I get no value. Could anyone please explain why? if I change it to a button of type "submit", it works, but it means the form gets submitted twice.</p>
  
  <p>Thanks</p>