Te paso un ejemplo de como sería aproximadamente, más que esto no te puedo ayudar:
Código Javascript
:
Ver originalvar desde = $("#select7").val();
var hasta = $("#select8").val();
$.ajax({
url: "ajax.php",
type: "POST",
data: {
hasta_var: hasta,
desde_var: desde,
},
timeout: 30000,
contentType : "application/x-www-form-urlencoded; charset=utf-8",
dataType: "html",
beforeSend: function() {
alert('ENVIANDO');
},
success: function(data, textStatus, jqXHR) {
alert('SE ENVIO CORRECTAMENTE');
},
error: function(jqXHR, textStatus, errorThrown) {
alert('OCURRIO UN ERROR');
}
});
ajax.php
Código PHP:
Ver original<?php
$desde = $_POST['desde_var'];
$hasta = $_POST['hasta_var'];