amanuel2 on master
moving install commands to inst… Merge pull request #41 from keh… (compare)
amanuel2 on master
Latest Updates ng-forum Merge branch 'master' of https:… (compare)
can someone help?
$.ajax({
type: 'POST',
url: '../db-interaction/remove.php',
data: "{'data1':'" + value1+ "', 'data2':'" + value2+ "', 'data3':'" + value3+ "'}"
// data: "{'id' : " + id + ", 'action' : 'remove'}"
})
.done(function(data){
// show the response
$('#status').html('<i>Successful: ' + data + '</i>');
})
.fail(function() {
// just in case posting your form failed
$('#status').html('<i>Failed</i>');
});if ($_SERVER["REQUEST_METHOD"] == "POST") {
$queue = new Queue($db);
echo 'TEST';
echo "<pre>";
print_r($_POST);
echo "</pre>";
if($_POST['action']=='remove'){
echo "HELLO!";
$myQueue->removeTicketFromID($_POST['id']);
}
}Test shows up
and an array
but it is empty