<?php
/**
* print out hidden input for form validation
*/
function smarty_function_formvalidation($params, &$smarty){
if(defined('FORM_VALIDATION_VALUE') && defined('FORM_VALIDATION_KEY')){
$str = '<input type="hidden" name="'.FORM_VALIDATION_KEY.'" value="'.FORM_VALIDATION_VALUE.'" />';
return $str;
}else{
die('form_validation not defined');
}
return '';
}
?>