本文整理汇总了PHP中FormProcessor::CheckFormatEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP FormProcessor::CheckFormatEmail方法的具体用法?PHP FormProcessor::CheckFormatEmail怎么用?PHP FormProcessor::CheckFormatEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormProcessor
的用法示例。
在下文中一共展示了FormProcessor::CheckFormatEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FormProcessor
$proceed = true;
//_________check if form filled in________
$process = new FormProcessor();
if (!$process->RequiredFields('all')) {
$notifications = 1;
$notice = "Error! - Fill in all form fields";
$proceed = false;
}
//_________check domain name is not domain.com________
if ($proceed && $site_base_url == 'http://www.yourdomain.com') {
$notifications = 1;
$notice = "Error! - Enter your correct domain name";
$proceed = false;
}
//_________check admin email________
if ($proceed && !$process->CheckFormatEmail('admin_email')) {
$notifications = 1;
$notice = "Error! - Invalid admin email address";
$proceed = false;
}
//_________check system email________
if ($proceed && !$process->CheckFormatEmail('notifications_from_email')) {
$notifications = 1;
$notice = "Error! - Invalid system email address";
$proceed = false;
}
//_________check admin email________
if ($proceed && !$process->CheckFieldMatch('admin_password, admin_password_confirm')) {
$notifications = 1;
$notice = "Error! - Passwords do not match";
$proceed = false;