/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
'Address not valid', // Default error message // Specific error messages 'Address contains invalid characters', Zend_Validate_Alnum::STRING_EMPTY => 'Address field is mandatory'))), 'Wrong phone number format', 'Phone number can only have digits', Zend_Validate_Digits::STRING_EMPTY => 'Phone number can not be empty'))), 'You do not qualify because of your age', 'Age is not between the allowed range'))), 'ID not valid', 'ID is too long', Zend_Validate_StringLength::TOO_SHORT => 'ID is too short'))), 'Wrong date', 'Date not recognized as valid', Zend_Validate_Date::FALSEFORMAT => 'Date format is incorrect', Zend_Validate_Date::NOT_YYYY_MM_DD => 'Date format must be YYYY-MM-DD'))), 'url' => $validurl );