title: Multiple submit buttons on HTML form – designate one button as default
body: <p>I have a form that has three submit buttons as follows:</p>
  
  <pre><code>&lt;input type="submit" name="COMMAND" value="&amp;lsaquo; Prev"&gt;
  &lt;input type="submit" name="COMMAND" value="Save"&gt;
  &lt;input type="reset"  name="NOTHING" value="Reset"&gt;
  &lt;input type="submit" name="COMMAND" value="Next &amp;rsaquo;"&gt;
  &lt;input type="button" name="NOTHING" value="Skip &amp;rsaquo;" onclick="location = 'yada-yada.asp';"&gt;
  </code></pre>
  
  <p>The row of buttons is a mix of submit, reset and JavaScript buttons. The order of buttons is subject to change, but in any case the save button remains between prev and next buttons.</p>
  
  <p>The problem here is that when a user hits <kbd>Enter</kbd> to submit the form, the post variable "COMMAND" contains "Prev"; normal, as this is the first submit button on the form. I however want the "Next" button to be triggered when the user submits the form via the <kbd>Enter</kbd> button. It is kind of like setting it as the default submit button, even though there are other buttons before it.</p>