Tell me, please, on the question - my main code is executed on php, I want to make a check on the buttons. On php, I will do the check itself, but I would like it to be with a pop-up window.
Here is an example of banal deletion of records from a table.
if(isset($_POST['argys']) and (!empty($_POST['abs']))) { $Yabs=$_POST['abs']; $result=$dbh->prepare("DELETE FROM `Oke`.`tovars` WHERE `tovars`.`id` = :id;"); foreach ($Yabs as $id) { $result->execute(array(':id' => $id)); } } The code is 100% working, the only thing is tell me how to check the link with JS.