title: click submit in html and run php code
body: <p>I am new to html &amp; php and I appreciate your help.  I am trying to accept user input into a webpage and then after the user clicks the submit button, write a new record out to MySQL.  I am using Wordpress so the tags are not exactly textbook.</p>
  
  <p>So my first problem is that the submit button does not appear to execute the php code.  I also would appreciate it if someone could check how I am passing my html field names to the php variables to make sure that I am on the right track.  Thanks for your help!</p>
  
  <pre><code>html code to collect user input for fields on the form.....
  &lt;?php&gt;
      if(isset($_POST['Submit'])) {
          $FName = $_POST['FName'];
          $MI = $_POST['MI'];
          $LName = $_POST['LName'];
  ....
  ?&gt;
  &lt;form action="" method="post"&gt;
  &lt;input type="submit" name="Submit" value="Submit"&gt;
  </code></pre>