Now before you say this one is duplicate, check my code below please: function:
$.ajax
({
type: 'POST',
url: 'store.php',
data: $g,
success: function(response){alert(response);}
});
store.php:
<?php
echo 'worked';
?>
Result: either no alert or
<?php
echo 'worked';
?>
any advice?