How to differentiate between two button clicks with confirm dialogue (SweetAlert) in PHP?
I use SweetAlert 2 for dialogues and I also use it to let the user confirm a button click. In one form I have two buttons, but because of the confirm dialogue the name of the button is not sent, so that I cannot check whether ‘btnName’ is set in $_POST.