<?php

include "../../classes/autoload.php";

$order_type = str_replace(["'", "\""], "", $_POST['order_type']);
$notes      = str_replace(["'", "\""], "", $_POST['notes']);
$terms      = str_replace(["'", "\""], "", $_POST['terms']);

$db->query("terms", "INSERT INTO terms (document_type, order_type, notes, terms) VALUES ('QUOTE', '$order_type', '$notes', '$terms')");

header("Location: home.php");
exit;