dejo un ejemplo de la class funcionando
Código PHP:
Ver original<html>
<head>
<title>Titulo</title>
<style>td{text-align:right;}</style>
</head>
<body>
<form action="" method="post">
<table>
<tr>
<td>Nickname </td>
<td><input type="text" name="nickname_form" /></td>
</tr>
<tr>
<td>Password </td>
<td><input type="text" name="password_form" /></td>
</tr>
<tr>
<td>Correo electronico </td>
<td><input type="text" name="email_form" /></td>
</tr>
<tr>
<td>Pagina web </td>
<td><input type="text" name="url_form" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="enviar" /></td>
</tr>
<tr>
<td colspan="2">
<?php
include_once 'common.Class/class.Validator.php';
$validator = new validator
(array("email","url","nickname","password"), true); }
?>
</td>
</tr>
</table>
</form>
</body>
</html>
cualquier duda preguntenla por aqui!..
saludos