title: How do I target a single form for a MySQL insert query function in PHP?
body: <p>I have three different forms on a single page. Each form's data will be entered into a different table. For the first one I created I'm using this <code>if</code> statement to insert the data into the table:</p>
  
  <pre><code>if ( $_SERVER['REQUEST_METHOD'] === 'POST' ) {
  $band_name = $_POST['bandname'];
  $band_website = $_POST['website'];
  $band_descrip = $_POST['description'];
  
  query(
      "INSERT INTO bands(bandname, website, description) VALUES(:bandname, :website, :description)",
      array('bandname' =&gt; $band_name, 'website' =&gt; $band_website, 'description' =&gt; $band_descrip),
      $conn
      );
  } else {
  $status = "Fill out the form";
  }
  </code></pre>
  
  <p>I am assuming I need to create three different versions of the <code>if</code> statement, one for each form. How can I specify which form was submitted?</p>