*** iCommento1 ***
[[_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); d($a);
$a = func_get_arg(1); d($a);
$v = $ev->FormValues();
$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']))
$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
';
}]]