I have a form I created and two of the options are to delete either a record or Hotel. So I have these two as my script
<script>
function confirmDelete(id){
if (confirm(“Are you sure you want to delete this record?”) == true){
document.location.href=”admin_editRedirectA.asp?strAction=delete&strID=” + id
}
}
</script>
<script>
function confirmDeleteHotel(id){
if (confirm(“Are you sure you want to delete Hotel record?”) == true){
document.location.href=”admin_editRedirectA.asp?strAction=delete&strHotel=” + id
}
}
</script>
____And I have:
<a href=”javaScript:confirmDeleteHotel(‘<%= request.queryString(“strID”)%>’)”>Delete Hotel Information</a>
<a href=”javaScript:confirmDelete(‘<%= request.queryString(“strID”)%>’)”>Delete Registration</a>
For the bottom part, it is working to prompt the person if they want to delete it, however it is not actually doing the deleting in the Access database, or on screen.