Confirm Before Form Submission
<p>I created a PHP page to delete from my database. This PHP page is the action of a form submission. The form is submitted by clicking a pic of "X" sign. 
How can I ask user to confirm before the submission of the form and therfore deleting from my database? </p>

<p>This is my code:</p>

<pre><code>&lt;form method='POST' action='delete.php'&gt;&lt;input type='image' src='images/delete.png' class='del' alt='Submit Form' /&gt;
</code></pre>

<p>I tried to do it inline by adding this to my form tag, but it did not work:</p>

<pre><code>onsubmit="return confirm('Are you sure you want to submit this form?');"
</code></pre>