Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 463 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 463 Bytes

HRC Reservation PHP Class

How to use

require_once('HRCReservation.php');
$error = false;

try {
    $reservation = new HRCReservation('demo.key');
   
    try {
        $reservation->send($_POST['date'], $_POST['time'], $_POST['name'], $_POST['phone'], $_POST['count'], $_POST['message']);
    } catch (Exception $exception) {
        $error = $exception->getMessage();
    }
} catch (Exception $exception) {
    $error = $exception->getMessage();
}