title: Submit form to action php file
body: <p>I have a form where when the user clicks submit, I need a php file to be ran.  below is the form and the php file.</p>
  
  <pre><code>&lt;form action="php_scripts/test.php" method="POST"&gt;
          &lt;input name="feature"     type = "text"     placeholder="Feature"   /&gt; 
          &lt;input name="feature2"   type = "text"  placeholder="Feature2"  /&gt; 
          &lt;input type="submit" value = "submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>test.php</p>
  
  <pre><code>&lt;?php
  
      if( isset($_GET['submit']) )
      {
          $feature = $_POST['feature'];
          // do stuff (will send data to database)
      }
  ?&gt;
  </code></pre>
  
  <p>The problem I am having is that when I press Submit on the form, </p>
  
  <pre><code>if( isset($_GET['submit']) )
  </code></pre>
  
  <p>Always returns false.  </p>
  
  <p>Can anyone explain why that is?  Have I totally misunderstood how to implement form sending data to php scripts?</p>
  
  <p>Apologies if I have made any syntax errors and many thanks for any help you can give.</p>