title: php javascript confirm box for delete
body: <p>The below code is in PHP</p>
  
  <pre><code>echo "&lt;input type='submit' name='delete' value='$t2[0]' class='delete_button' onclick='return confirm('Please Confirm Delete');'&gt;"
  </code></pre>
  
  <p>I am trying to create a delete button, when a user clicks on delete button , it should ask confirmation. but in this case, its not working.</p>
  
  <p>is there any best way to delete with confirmation in php with/ or javascript
  and no ajax </p>