Beispiel #1
0
    $edad2 = $_POST['f_oldsNums2'];
    $edad3 = $_POST['f_oldsNums3'];
    $edad4 = $_POST['f_oldsNums4'];
    session_start();
    //LIMPIAR EL ARREGLO CADA VEZ QUE SE RECOTIZA
    $arreglo = $_SESSION['categoriasSeleccionandas'];
    $arreglo = $func->limpiarColeccion($arreglo);
    $_SESSION['categoriasSeleccionandas'] = $arreglo;
    /////////////////////CONSTRUIMOS EL ARREGLO DE PASAJEROS PARA COTIZAR//////////////////////
    $pasajerosCotizacion = $func->limpiarColeccion($pasajerosCotizacion);
    $pasajerosCotizacion[] = $_POST['f_oldsNums1'] != null ? $_POST['f_oldsNums1'] : "";
    $pasajerosCotizacion[] = $_POST['f_oldsNums2'] != null ? $_POST['f_oldsNums2'] : "";
    $pasajerosCotizacion[] = $_POST['f_oldsNums3'] != null ? $_POST['f_oldsNums3'] : "";
    $pasajerosCotizacion[] = $_POST['f_oldsNums4'] != null ? $_POST['f_oldsNums4'] : "";
    // OBTENEMOS LA CANTIDAD DE PASAJEROS
    $totalPasajeros = $cotizador->CantidadPasajeros($edad1, $edad2, $edad3, $edad4);
} else {
    if ($estado == 1) {
        $origen = (int) $_GET['origen'];
        $destino = (int) $_GET['destino'];
        $salida = $_GET['salida'];
        $regreso = $_GET['regreso'];
        $tipoviaje = (int) $_GET['tipoviaje'];
        $email = $_GET['email'];
        $edad1 = $_GET['edad1'];
        $edad2 = $_GET['edad2'];
        $edad3 = $_GET['edad3'];
        $edad4 = $_GET['edad4'];
        /////////////////////CONSTRUIMOS EL ARREGLO DE PASAJEROS PARA COTIZAR//////////////////////
        $pasajerosCotizacion = $func->limpiarColeccion($pasajerosCotizacion);
        $pasajerosCotizacion[] = $_GET['edad1'] != null ? $_GET['edad1'] : "";