/    Sign up×
Community /Pin to ProfileBookmark

Trying to delete records in form

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.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @celtic5544 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...