<?php require_once("rating/classes/include.all.php"); // Check that the data was sent if (sizeof($_POST) == 0 || $_POST['parent'] == null || strlen(trim($_POST['parent'])) == 0 || $_POST['item'] == null || strlen(trim($_POST['item'])) == 0 || $_POST['rating'] == null || strlen(trim($_POST['rating'])) == 0 || $_POST['classes'] == null || strlen(trim($_POST['classes'])) == 0) { die("You shouldn't be attempting to access this file in this manner."); } echo Rating::RateItem($_POST['parent'], $_POST['item'], $_POST['rating'], $_POST['classes']); ?>