title: Linking an HTML form to a PHP file or just save it as a PHP file?
body: <p>When creating a simple form which a PHP script will process, does it matter if we link to that form via the form tag? For example, we have:</p>
  
  <pre><code>&lt;form name="studentapp" method="post"&gt;
  </code></pre>
  
  <p>With the PHP script being below the HTML form. The file is saved as a PHP itself, so it can interpret the PHP code. There isn't really anything special about the name. But how about this:</p>
  
  <pre><code>&lt;form action="application.php" method="post"&gt;
  </code></pre>
  
  <p>Where the file is an HTML file, but it links to a PHP file for processing the data.</p>
  
  <p>Is one better to use than the other?</p>
  
  <p>EDIT: There is an error in the code I posted. One should use the action tag to link a separate PHP file for processing. (Thanks user Stony)</p>