Hello good afternoon, I have a problem getting data sent by AJAX to a Controller
Data sent by AJAX
var txtDateInicio = document.getElementById('date_inicio').value;
var txtDateFin = document.getElementById('date_fin').value;
var parametros = {
"txtDateInicio" : txtDateInicio,
"txtDateFin" : txtDateFin
};
$.ajax({
url : url,
type: "POST",
data: parametros,
success: function(data) {
window.location.href = "<?php echo base_url('index.php/login_controller/perfil_calls')?>";
},
error: function (jqXHR, textStatus, errorThrown) {
alert('Error al filtrar');
}
});
I want to get them my Controller
public function perfil_calls() {
}
I hope you can help me.
Thanks