title: Anchor tag as submit button?
body: <p>I'm in the process of converting an existing website to use MVC and Entity Framework.</p>
  
  <p>The layout / styling is all supposed to stay the same, and in order to follow that guideline I need to submit my login form using an <code>&lt;a&gt;</code> tag, because it has a custom image for the button.</p>
  
  <p>Here's my form:</p>
  
  <pre><code>@using (Html.BeginForm("Login", "Login", FormMethod.Post, new { id = "login", action = "Login" }))
  {
      &lt;label&gt;
          &lt;span&gt;Username
          &lt;/span&gt;
          &lt;input type="text" name="UserName" id="UserName" class="input-text required" /&gt;
      &lt;/label&gt;
      &lt;label&gt;
          &lt;span&gt;Password
          &lt;/span&gt;
          &lt;input type="password" name="Password" id="Password" class="input-text required" /&gt;
      &lt;/label&gt;
      &lt;label&gt;
          &lt;input type="checkbox" name="RememberMe" id="RememberMe" class="check-box" /&gt;
          &lt;span class="checkboxlabel"&gt;Remember Me&lt;/span&gt;
      &lt;/label&gt;
      &lt;div class="spacer"&gt;
          &lt;a href="javascript:void(0)" onclick="login();" class="login-button"&gt;&lt;/a&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>As you can see, the <code>&lt;a&gt;</code> tag formerly submitted login info using javascript. This is not what I'm looking to accomplish.</p>
  
  <p>How can I change that tag to submit my form to my controller action?</p>