<?php /** * @copyright 2010 */ session_start(); require_once('validation.php'); $valid = new validation; if( isset($_POST) && count($_POST) > 0) { //print_r($_POST); $safe_str = $valid->xss_clean($_POST['comment']); } echo $safe_str; ?>