contact form does not work after you click send to return a blank page
http://mtd-przyczepy.pl/kontakt/
// check the e-mail
if($params_email) {
if(trim($_POST['email']) === '' || !eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) {
$validated = false;
$errors['email'] = __('please enter correct email address.', GKTPLNAME);
} else {
$output['email'] = trim($_POST['email']);
}
}
// check the e-mail
if($params_email) {
$regex = '/([a-z0-9_]+|[a-z0-9_]+\.[a-z0-9_]+)@(([a-z0-9]|[a-z0-9]+\.[a-z0-9]+)+\.([a-z]{2,4}))/i';
if(trim($_POST['email']) === '' || !preg_match($regex, trim($_POST['email']))) {
$validated = false;
$errors['email'] = __('please enter correct email address.', GKTPLNAME);
} else {
$output['email'] = trim($_POST['email']);
}
}
$email = get_option($gk_tpl->name . '_contact_template_email', '');
// if the user specified blank e-mail or not specified it
if(trim($email) == '') {
$email = get_option('admin_email');
}
$email = '[email protected], [email protected]';