title: MVC: Retrieving form values after submitting
body: <p>I have a form on a dialog box like so:</p>
  
  <pre><code>&lt;form action="../ControlerFunction"&gt;
      &lt;input type=text id="id1"/&gt;
      &lt;input type=text id="id2"/&gt;
      &lt;button type="submit"&gt; OK &lt;/button&gt;
      &lt;button type="button" class="close"&gt; Cancel &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When the form is submitted it hits my controller function, but how can I retrieve the values of the two text boxes?</p>
  
  <p>Also when I change the form action to:</p>
  
  <pre><code>&lt;form action="JavaScriptFunction();"&gt;
  or:
  &lt;form action="JavaScriptFunction();return false;"&gt;
  </code></pre>
  
  <p>and I have my JavaScript on the same page as:</p>
  
  <pre><code>function JavaScriptFunction()
  {
      alert("Hi!");
  }
  </code></pre>
  
  <p>it does not hit the function. Am I missing something?</p>