title: html form posting to mvc controller
body: <p>I am trying to set up a simple login html page, whose action is sent to mvc controller on another of my sites. I have no problem setting up the page to do the post, and in the mvc controller I have my method that reads the form post. The problem is that I am not seeing my fields from the html form in the form collection.</p>
  
  <p>Is there something special that I need to do to read a form post within a mvc controller method, if so what is that?</p>
  
  <hr>
  
  <p>The is the form action markup from my page</p>
  
  <pre><code>&lt;form action="http://reconciliation-local.sidw.com/login/launch" method="post"&gt;
      User Name &lt;input type="text" id="username"/&gt;&lt;br/&gt;
      Password &lt;input type="text" id="password"/&gt;
      &lt;input type="submit" value="launch"/&gt;
  
  
  &lt;/form&gt;
  </code></pre>
  
  <p>The controller method</p>
  
  <pre><code>    [HttpPost]
      public ActionResult launch(FormCollection fc)
      {
          foreach (string fd in fc)
          {
              ViewData[fd] = fc[fd];
          }
          return View();
      }
  </code></pre>
  
  <p>When I step through the controller method code, I am not seeing anything in the formcollection parameter.</p>