<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
include_once '../config/database.php';
include_once '../security/session_config.php';
include_once '../security/csrf.php';
include_once '../config/properties.php';
// include object
require("../resources/offering.php");
$csrf_token = $_POST['csrf_token'];
validate_csrf_request($csrf_token);
// initialize objects
$user_id = $_POST['user_id'];
$offering_id = $_POST['offering_id'];
$course_notes = $_POST['course_notes'];
$date_time = $date_time;
//$last_updated_user=$_GET['user_id'];
$last_updated_user = $user_id;
$offering = new Offering();
$offering->notes_insert($user_id, $offering_id,$course_notes,$last_updated_user, $date_time);
?>
