PHPでLivaValidation

ちょっと前にPHP界隈で取り上げられていたLiveValidationPHP。PHPでやる意味は何かな、とexampleを見てみると

[php]
$html=”";
$frmTestLive=new LiveValidationMassValidatePHP(“frmTestLive”,$_POST);
$frmTestLive->addRules($formRules["frmTestLive"]); // get the rules
$html=$frmTestLive->generateAll();

print ““;
[/php]
LiveValidation用のJavascriptが簡単に作れる、という感じでしょうか。そしてAjax?ですね?
機会があれば組み込んでみるテストのメモ、ということで。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">