PHP Classes

File: classes/ajax.php

Recommend this page to a friend!
  Classes of johno dread   Custom Form Validation   classes/ajax.php   Download  
File: classes/ajax.php
Role: Auxiliary script
Content type: text/plain
Description: Process post value before it gets submitted
Class: Custom Form Validation
Validate form values according to several rules
Author: By
Last change:
Date: 13 years ago
Size: 300 bytes
 

Contents

Class file image Download
<?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;
       

?>