0

Есть готовый php. Нужно отправлять запрос через ajax jquery-ский:

$.ajax({
        type: 'POST',
        url: "../order_form.php", 
        cache: false,
        beforeSend: function() {
            $('.form input:nth-child(4)').prop('disabled', true);
        },
        success: function() {
            $('.form input:not(.form input:nth-child(4))').trigger('reset');
            $('.form input:nth-child(4)').prop('disabled', false);
            alert('success');
        }
    });

В итоге пишет succes, но форма не видна в бд

1 Answers1

0

Пропишите ответ success: function(response), добавив response в качестве параметра. И в нем должен храниться ответ от сервера.