Question : ajax post example php
Answered by : breakable-bison-hhsmo8m3apzb
/* Get from elements values */ var values = $(this).serialize(); $.ajax({ url: "test.php", type: "post", data: values , success: function (response) { // You will get response from your PHP page (what you echo or print) }, error: function(jqXHR, textStatus, errorThrown) { console.log(textStatus, errorThrown); } });
Source : https://stackoverflow.com/questions/5004233/jquery-ajax-post-example-with-php | Last Update : Sat, 16 Jan 21