I have created a delete button for my database, and I was wondering whether it was possible to create a script where a pop up information/dialog box would appear on screen to ask something like ‘Are you sure you want to delete?’ with Yes/No options, before the php delete script is actioned?
<script language='JavaScript'>
function validate()
{
conf = confirm("Are you sure you want to delete?");
if (conf)
return true
else
return false;
}
</script>
I would like to add something like ‘Are you sure you want to delete $searchrace?’