Many time while deleting a record we give one warning message or a simple window message asking the user to confirm once again the deleting process. Here the user can change his mind and can cancel the operation or confirm his action by clicking the submit button.
msg= "Are you sure you want to delete the data ? " + ttt + " - ID= "+id;
return true ;
return false ;
Here is the PHP code where records are displayed with a delete link. User can delete any record by clicking the delete link. Here some PHP code is shown as an example. Same way ASP or other script code can be used.