($field, $value) { print_r($field); print_r($value); } ?>
//function /* * * Custom function for the callback validation referenced above * */ function validate_callback_function($field, $value, $existing_value) { $error = false; $value = ‘just testing’; /* do your validation if(something){ $value = $value; }elseif(somthing else){ $error = true; $value = $existing_value; $field[‘msg’] = ‘your custom error message’; } */ $return[‘value’] = $value; if ($error == true) { $return[‘error’] = $field; } return $return; } //function
Bem provável que uma tag de abertura ou fechamento esteja errada. Tenta também colocar esse comentário fora da tag. (no fim ou no começo)