Class FormValidation
Copyright:
2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
Class: FormValidation
Code:
Par: Examples
Located at formvalidation.php
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
Validate various content of form elements
This class can be used to validate form input. Therefore the methods can be called and get the form input as parameter. The method will return @b true if validation was succesfull. Otherwise an AdmException will be thrown. To catch this exception all method calls of this class should be within a try and catch structure. Also all method are declared static.
Class: FormValidation
Code:
// validate the captcha code try { FormValidation::checkCaptcha($_POST['captcha_code']); } catch(AdmException $e) { $e->showHtml(); } @endcode
Par: Examples
Located at formvalidation.php
Methods summary
public static
true
|
#
checkCaptcha( string $value )
Checks if the value of the captcha input matches with the captcha image. |