PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
is there any way of making a confirmation window come up to select Yes or No when clicking on a delete link to delete a record? Please bear in mind I am refering to a link and not a form button. Thanks. For example if I have the following code:
<SCRIPT language="e;JavaScript"e;>
<!--
function ConfirmDelete()
{
var ConfirmReq = confirm("e;Are you sure you want to delete this item?"e;);
if (ConfirmReq == true)
{
// send to the "e;process.php"e; page with a $delete=1 var to confirm deletion
}
else
{
// do something else or preferably nothing
}
}
//-->
</SCRIPT>
Thanks for the info, but I am listing more than one users per page. Any way I can get a Delete button on the page for each user? And how is it possible to link that button to delete a specific user on the list??