[[_onformaterrors{
D('Errori!', $ev->FormValues());
var_dump(func_get_arg(1));
var_dump(func_get_arg(2));
return "KAPPA";
}]]
[[onvalidate{
$a = func_get_arg(0);
$a = func_get_arg(1);
$v = $ev->FormValues();
D($_POST['vote']);
$rv = array();
if (empty($v['nome']))
$rv['nome'] = 'E\' necessario inserire un nome';
if (empty($v['commento']))
$rv['commento'] = 'Per favore, inserisci un commento';
//if (empty($_POST['vote']))
if (isset($_POST['vote']) && ! ($_POST['vote']>= 1 && $_POST['vote']<= 3))
$rv['btnSubmit'] = 'Per favore, inserisci un voto';
return $rv;
}]]
[[oncomplete{
return 'Ti ringraziamo per avere insertito il commento. Esso sarà visibile al più presto, compatibilmente con la netiquette
';
}]]