Location: PHPKode > scripts > Rex > rex/examples/example3.php
<?php
// example3 php showing Rex class in action

// ...
require ("rex.class.php");
$rex = new rex();

// Can only filter arrays ($_GET | $_POST)
$a = $rex->filtraxss($_GET);
if ($a == true)
{
    echo "XSS vulnerable";
} else
{
    echo "Not vulnerable to XSS";
}
// ...
?>
Return current item: Rex