Code:
function myFunction_loeschen() {
var r = confirm("Sind Sie sich sicher?");
if(r) {
$.ajax({
type: 'POST',
url: 'monitorOESoft.php?clear=22',
cache: false,
data: {confirm:''},
});
}
}
Mit deinen PHP
Code:
if(isset($_GET['clear']) && isset($_POST['confirm'])) {
$id = $_GET['clear'];
if ($id > 0){
echo "gelöscht !";
}
}