merhaba arkadaşlar aşağıda ki kod yapısın da en son else kısmında alert ile olsun yada yukle.php de bir çok denemelerimde verilere ulaşamadım yardımcı olurmusunuz
<html>
<body>
<button id="start">Kontrol</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function(){
$("#start").click( function(){
var uye = 'ahmet';
var paramsJSON = '{"sparis":[{"id":0,"Marka":"torku","cinsi":"gofret","secilen":"1"}]}';
$.post( "yukle.php", { data: paramsJSON, uye_id: uye} ).done(function( response ) {
response = JSON.parse(response);
if (response.state === 'error') {
alert(response.message);
} else {
sparis = [];
}
});
});
});
</script>
</body>
</html>