Contents |
ValidForm→isValid
ValidForm→isValid — Checks if all the submitted fields are valid
Description
isValid (void);
Checks if all the submitted fields are valid.
Parameters
No parameters.
Return values
Returns a boolean: true if valid, false if not.
Example
if($objForm->isSubmitted() && $objForm->isValid()){
//*** Send your e-mail, save your form data, whatever you feel like.
$strOutput = "Thank you for submitting the form. We appreciate that.";
}
else {
$strOutput = $objForm->toHtml();
}
echo $strOutput;

