I am calculating the distance between two places using jQuery and I want to pass this value (pickup\_distance) for use in PHP.

I am wanting to send this value to tariff.fare.controller.php for use in the following function:

```
private static function getFare($int_terminate) {

    // Function

    if pickup_distance(<-- jQuery Value) > 5 {

        // Do Something

    }

}

```

How could I go about doing this? I'm aware I can do this via AJAX but being quite new to programming I'm not quite sure how I can do this.

Any help would be much appreciated!