Max Resnikoff wrote:
I dont know what im doing wrong!
'deleteequip.php'
<script>
//alert on delete
function confirm_alert(node) {
return confirm("You are about to permanently delete a product. Click OK to continue or CANCEL to quit.");
}
</script>
equipmentinventory.php:
<a class="button" onclick="return confirm_alert(this);" href="deleteequip.php?id=<?php echo $row_get_invlist['id']; ?>">DELETE</a>
The <script> </script> needs to go in the same page as the delete link NOT in the 'deleteequip.php' page