title: popup message before deleting data
body: <p>I'm trying to put popup message in this code before user delete data. Here is my code.</p>
  
  <pre><code>while ($test = mysql_fetch_array($result))
  {
      $id = $test['FailID'];
  
      echo "&lt;tr align='center'&gt;"; 
      echo"&lt;td&gt;&lt;font color='black'&gt;" .$test['FailID']."&lt;/font&gt;&lt;/td&gt;";
      echo"&lt;td&gt;&lt;font color='black'&gt;" .$test['TajukFail']."&lt;/font&gt;&lt;/td&gt;";
      echo"&lt;td&gt;&lt;font color='black'&gt;". $test['JilidFail']. "&lt;/font&gt;&lt;/td&gt;";
      echo"&lt;td&gt;&lt;font color='black'&gt;". $test['StatusFail']. "&lt;/font&gt;&lt;/td&gt;";    
      echo"&lt;td&gt; &lt;a href ='daftarkemaskini.php?FailID=$id'&gt;Edit&lt;/a&gt;";
      echo"&lt;td&gt; &lt;a href ='padamfail.php?FailID=$id'&gt;&lt;center&gt;Delete&lt;/center&gt;&lt;/a&gt;";
  
      echo "&lt;/tr&gt;";
  }
  </code></pre>
  
  <p>but when I put it in there it doesnt work at all.</p>
  
  <pre><code>echo"&lt;td&gt; &lt;a href ='padamfail.php?FailID=$id' onClick="return confirm('are you sure you want to delete??');"&gt;&lt;center&gt;Delete&lt;/center&gt;&lt;/";&gt;"
  </code></pre>
  
  <p>Can anyone help me on this?</p>