title: Submitting a form view to controller
body: <p>I have a form in my form view defined as </p>
  
  <pre><code>using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
  </code></pre>
  
  <p>This form contins a number of input of type button and button</p>
  
  <pre><code>&lt;input type="submit" value="val1" name="action"&gt;
  &lt;input type="submit" value="val2" name="action"&gt;
  &lt;input type="submit" value="val3" name="action" /&gt;
  &lt;button class="button" type="submit" name="action" value="val4"&gt;Val4&lt;/button&gt;
  </code></pre>
  
  <p>I have 2 controllers for this view</p>
  
  <pre><code>Public ActionResult form{
  } 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>[HttpPost]
  public ActionResult form(String button)
  {
    switch (actionType)
    {
      case "val1":
        return RedirectToAction("AnotherView"); 
      case "val2":
        return RedirectToAction("AnotherView2");
      default:
        return RedirectToAction("AnotherView3");
    }
  } 
  </code></pre>
  
  <p>But whichever button I click, I am being redirected to the Home defined in the form</p>
  
  <pre><code>using (Html.BeginForm("Index", "Home",
  </code></pre>
  
  <p>My question is how can I fix this and how can I be certain that this post method is bound to my view as i just typed it in?</p>