title: Using a Submit Button to insert an entry into a MySQL database via PHP?
body: <p>I'm pretty new to PHP, so I'm not quite sure on what to do with this.</p>
  
  <p>Basically I'm trying to insert an entry into my MySQL database, through a "submit" button in HTML. I can't seem to get this to work, is it possible?</p>
  
  <pre><code>    &lt;?php
      include('db_connect.php');
      $SQL = "INSERT INTO chosenitems (ID, Name, Price) VALUES ('', '4-6 Days', '£75.00')";
  
      $result = mysql_query($SQL);
      ?&gt;
  </code></pre>
  
  <p>The INSERT works perfectly fine on its own, but I want it to be executed when the "submit" button is pressed.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Tobo.</p>