I am still in the same problem in this link here. So, I used the append
method. And here is the AJAX
code:
please correct your json data which you are sending to server
data: {'insert_new': 1, 'selectW': selectW, 'select_at': select_at, 'pay': pay, 'facture': facture, 'select_opt': select_opt},
and in php add a die
if(isset($_REQUEST['insert_new'])){
// your code
die(); // just before closing the if to make sure you are not echoing anything more;
}