title: To build a `Delete` -button efficiently with JavaScript / PHP
body: <p><strong>Which of the following code is better in building a <code>delete</code> -action for removing a question?</strong></p>
  
  <h1>1 <strong>My code</strong></h1>
  
  <pre><code>&lt;a href='index.php?delete_post=777&gt;delete&lt;/a&gt;
  </code></pre>
  
  <h1>2 <strong>Stack Overflow's code</strong></h1>
  
  <pre><code>&lt;a id="delete_post_777&gt;"&gt;delete&lt;/a&gt;
  </code></pre>
  
  <p>I do not understand completely how Stack Overflow's delete -button works, since it points to no URL. 
  The <code>id</code> apparently can only be used by CSS and JavaScript.
  Stack Overflow apparently uses JavaScript for the action.</p>
  
  <ol>
  <li><strong>How can you put start the <code>delete</code> -action based on the content of CSS -file by JavaScript?</strong></li>
  <li><strong>How can you start a SQL delete -command by JavaScript?</strong> I know how you can do that by PHP, but not by JavaScript.</li>
  </ol>