title: Cannot get confirm box to appear onsubmit
body: <p>I am trying to use <code>onsubmit="return confirm('Do you really want to submit the form?')"</code> to make a warning appear before a user deletes items by clicking the submit button. I cannot get a confirm box to appear it just continues directly to deleting the item. </p>
  
  <p>Can anyone see in my code where I could be going wrong? I have tried changing double and single quotes but no effort has got the confirm box to appear.</p>
  
  <p>My code is as follows.</p>
  
  <pre><code>    echo '&lt;td&gt; &lt;form method="post" action="deleteassign.php" name="deleteassignform"
   id="deleteassignform" onsubmit="return confirm('Do you really want to submit the form?')"&gt;';
      echo '&lt;input type="hidden" name="quizidvalue" id="quizidvalue" value="'.$sendquizid.'" /&gt;';
      echo '&lt;input type="hidden" name="classidvalue" id="classidvalue" value="'.$sendclassid.'" /&gt;';
      echo '&lt;input type="submit" name="deleteassignment" id="deleteassignment" value="Delete This Assignment"&gt; &lt;/form&gt; &lt;/td&gt; &lt;/tr&gt;';
  </code></pre>