Skip to main content

Ajax jquery Post didn't send parameters

I use this code to send a post request to another page. post call works but no parameter send to that page :

$.ajax({ type: "POST", url: "insertar.php", data:"tipo_tar:1&monto:" + "1000" + "&n_m:" + "100" + "&refe:" + "100" +"&usuario:" + "pcisneros01" + "&email:" + "[email protected]" , contentType:"application/x-www-form-urlencoded", success: function(result) { alert(result); if(result.indexOf("SMS")>=0){ $(".centro").hide(); $(".content-area").hide(); $("#bodythxRecarga").show(); } } }); 

I am confused. I comply all rules but in destination page I don't have any post data.

Ehsan Sadeghi
  • 117
  • 1
  • 4
  • 17