Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roberto Aleman  >  Forms Protected of XSS attacks  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of Use
Class: Forms Protected of XSS attacks
Validate submitted form values
Author: By
Last change:
Date: 4 years ago
Size: 620 bytes
 

Contents

Class file image Download
<?php 
/* Forms protected of XSS attacks (FOPAXSS) by Roberto Aleman, Enjoy it, test it and improve it! */

//calls to scripts
require_once("fopaxss.php");
$val = new fopaxss();

//captch submit
if(isset($_POST['submit']))
    {
        
$val-> val_txt_field_or_numbers($_POST['txt']);
        
$val-> val_date($_POST['date']);
        
$val-> val_hexadecimal($_POST['hexadecimal']);
        
$val-> val_email($_POST['email']);
        
$val-> val_password($_POST['password']);
    }
//show results
$val-> enginecontactform($_POST['txt'],$_POST['date'],$_POST['hexadecimal'],$_POST['email'],$_POST['password']);  //add type fields in orden 
?>