本文整理汇总了PHP中FormProcessor::CheckFieldMatch方法的典型用法代码示例。如果您正苦于以下问题:PHP FormProcessor::CheckFieldMatch方法的具体用法?PHP FormProcessor::CheckFieldMatch怎么用?PHP FormProcessor::CheckFieldMatch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormProcessor
的用法示例。
在下文中一共展示了FormProcessor::CheckFieldMatch方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
$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;
}
//_________everything is fine - finish________
if ($proceed) {
$site_name = mysql_real_escape_string($_POST['site_name']);
$site_base_url = mysql_real_escape_string($_POST['site_base_url']);
//remove starting /
if (substr($site_base_url, 0, 1) == '/') {
$site_base_url = substr($site_base_url, 1);
}
$date_format = mysql_real_escape_string($_POST['date_format']);
$path_to_ffmpeg = mysql_real_escape_string($_POST['path_to_ffmpeg']);
$path_to_flvtool2 = mysql_real_escape_string($_POST['path_to_flvtool2']);