$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;