download class vee secured form ได้ที่นี่ครับ 
เวลาใช้งานก็...
<?php
require_once("veesf.php");
$vsf = new veesf();
?>
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>test Vee form secured</title>
<style type="text/css" media="all">
.hrmajor {border: none; border-top: 3px solid #ccc; margin: 20px 0 20px 0;}
.hrminor {border: none; border-top: 2px dashed #efefef;}
</style>
</head>
<body>
<h1>ทดสอบ Vee secured form</h1>
<h3>ทดสอบ xss</h3>
input xss test result:<br />
<?php echo $vsf->input_post("xss", true); ?><br />
<textarea name="null" cols="50" rows="7"><?php echo $vsf->input_post("xss", true); ?></textarea><br />
<hr class="hrminor" />
<?php echo $vsf->form_open("test.php"); ?>
xss test: <br /><textarea name="xss" cols="50" rows="7"><?php echo $vsf->input_post("xss"); ?></textarea><br />
<input type="submit" value="send" />
<?php echo $vsf->form_close(); ?>
</body>
</html>
ดูเนื้อหาและ property/method อ้างอิงได้ที่ link นี้นะครับ
http://www.okvee.net/2011/03/0...red-form-and-prevent-csrf-xss/ 