I'd like a user to be able to login to a db and that's all fine but when the user presses a button saying "Finish", how could I make it so a record in a table is deleted?
Easiest way I can think of is to use an SQL statement to delete the required record.
You could set it up so the FINISH button submits a form containing an ID number of the record you want to delete. Post the form to an ASP page that opens the database connection and deletes the record using an SQL statement like this:
"DELETE FROM YOURTABLE WHERE YOURTABLEID IN ("&userIDNo&""
Then redirect the user to another page using
Response.Redirect "URL"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.