title: Delete file onclick with PHP
body: <p>I want to delete a file when a user clicks on a delete link. But when I go to my page, the file gets deleted and I don't know why:</p>
  
  <pre><code>echo '&lt;h3&gt;&lt;a onclick="'.unlink(__FILE__).'"&gt;Delete Now!&lt;/a&gt;&lt;/h3&gt;';
  </code></pre>
  
  <p>What am I doing wrong?</p>