addMessage()
clonefish->addMessage() - add an error message to the form
Description
class clonefish { void addMessage( string $message ) }
Append an error message to the list of current error messages of the form. Most of the time it's used together with clonefish->invalidate()
.
Examples
<?php
$clonefish->invalidate();
$clonefish->addMessage(
'Some special fields are required!'
);
?>
form validation for developers!
clonefish is a proven, mature form generator class that helps PHP developers to create, validate and process secure, flexible and easy-to-maintain formslearn more