$.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(); } } });