public static function saveCustomerRequest() { if (!isset($_POST['contact'])) { die(0); } $CustomerRequests = new Structures\CustomerRequests(); $request = Forms::sanitize($_POST['contact']); $result = $CustomerRequests->set((object) $request); // Also notify admin Forms::sendToAdmin($request); die(!empty($result)); }