title: Delete button and confirmation
body: <p>Hi I have a working link to delete a row from my database. <br></p>
  
  <pre><code>&lt;a href="?action=delete&amp;id=&lt;? echo $id ?&gt;" onclick="return confirm('Are you sure you want to delete?')"&gt;&lt;strong&gt;Delete this Case&lt;/strong&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;?php
      if($_POST['action']=="delete")
      {
           $id = $_POST['id'];
  
           mysql_query("DELETE FROM rmstable2 WHERE id= '$id'");
           echo("&gt; Case # $id has been deleted as requested. To see your changes please click &lt;a href='/martinupdate.php?id=$id'&gt;here&lt;/a&gt;&lt;/b&gt;&lt;br&gt;");
      }
  ?&gt;
  </code></pre>
  
  <p>what I am looking to do is instead of having a link I want to have a button that when pressed it brings up a confirmation and then deletes the row if true.<br>
  I do not want accidental deletions.</p>
  
  <pre><code>&lt;form&gt;
      &lt;input type="button" value="Delete this Case" onclick="return confirm('Are you sure you want to delete?')"; 
      &lt;a href="?action=delete&amp;id=&lt;? echo $id ?&gt;"&gt;
  &lt;/form&gt;
  </code></pre>