In my continuing effort to learn PHP I decided to work on a registration system as a project for fun. I have a "View Users" page that would list the users with a link to "Delete" for admins.
The book I was referencing for help redirects to a "deleteuser.php" type page where you then have to confirm if you want to do that or not.
I would prefer to simply just a JS Confirm pop up box to ask if they are sure (or something along those lines) and if they click 'ok' it will execute.
So my question is, what is the best way to set it up so that if I were to click 'ok' on the confirm box, the query would be executed?