Newbie Newbie - 2 years ago 130
MySQL Question

JavaScript Confirm before deletion with PHP/MYSQL

I have tried a number of examples here but I can get my code to actually show a popup window before deletion. The code I use can be found here:

Answer Source
  <script type="text/javascript">
      function ConfirmDelete()
            if (confirm("Delete Account?"))

  echo '<input type="button" onclick="ConfirmDelete()" value="DELETE ACCOUNT">';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download