It's certainly possible to do it the way you're describing it, although normally, each button would be part of a mini-form with a hidden "id" field that uses the "post" method to send the ID to the receiving page with another form and snippet on it which would do the confirmation and delete the user.
That said, the usual way to do that these days is with Ajax and JavaScript, which would allow the whole operation to take place without the user leaving the original page and without the page reloading.
You make it so the button click triggers some JavaScript that pops up an "Are you sure?" window. If the user says yes, an Ajax request is made to a processor file that deletes the user. It sounds a lot more complicated than it is. In JQuery, the JS would look something like this:
$('.removeUser').click(function (event) {
if (confirm('Are you sure you want to delete this user?')) {
$.ajax({
url: 'myUrl', /* Url of the remove-user processor */
type: "POST",
data: {
/* data stuff here -- ID of the user */
},
success: function () {
/* does some stuff here like delete the user from the on-screen list */
}
});
}
});
No matter how you do it, you're biggest issue is going to be making it secure so that unauthorized people can't just delete your users at will.