Tengo esta funcion en javascript, como puedo pasar las variables "fecha" y "fecha7" al controlador en PHP a un metodo
<?php
$fecha = $_POST['fecha'];
$fecha_7_dias = date("d-m-Y",strtotime($fecha."- 6 days"));
?>
<script>
$( document ).ready(function()
{
ejecutarReporteDiarioPS(fecha,fecha7);
});
function ejecutarReporteDiarioPS(fecha,fecha7)
{
var url = "../controllers/AjaxController.php";
$.ajax({
url: url,
type: 'POST',
success: function (response)
{
console.log(response);
}
});