Deprecated: Function eregi() is deprecated in /home/c737musi/public_html/modules/mod_supercontact/tmpl/send.php on line 34Anything I can do to fix this? (screenshot image attached.)
Like
Be the first to like this post.
Responses (9)
-
Accepted Answer
-
Accepted Answer
It worked great!!!! Thanks again Mustaq!
I have some questions in yootheme support I know you are dying to answer for me! LOL
Like Be the first to like this post. -
Accepted Answer
I would do it, but i have been having horrible luck on this website as you know
I will ask you to do it please. I will post my FTP info above. THANKS! Like Be the first to like this post. -
Accepted Answer
Or, you could look st mod_supercontact/tmpl/send.php and where you see eregi, place;
// trim whitespace and validate the submitted data
replace above with ;
$error = '';
if(trim($_POST['name']) == "" || !eregi("^[A-Za-z]+ [A-Za-z]", trim($_POST['name']))) {
// name is empty or has illegal charcters
$error .= "Name is missing or invalid. ";
}
if(trim($_POST['email']) == "" || !eregi("^[A-Za-z0-9\_\.-]+@[A-Za-z0-9\_\.-]+.[A-Za-z0-9\_-]+.*", trim($_POST['email']))) {
// email is empty or has illegal charcters
$error .= "Invalid email address. ";
}
if (trim($_POST['email2']) == "" || !eregi("^[A-Za-z0-9\_\.-]+@[A-Za-z0-9\_\.-]+.[A-Za-z0-9\_-]+.*", trim($_POST['email2']))) {
// confirm email is empty or has illegal charcters
$error .= "Invalid confirm email address. ";
}
if (trim($_POST['email2']) != trim($_POST['email'])) {
// confirm email and email do not match
$error .= "Email and confirm email do not match.";
}
if (trim($_POST['tele']) == "" || !eregi("^(([0-9]{1})*[- .(]*([0-9a-zA-Z]{3})*[- .)]*[0-9a-zA-Z]{3}[- .]*[0-9a-zA-Z]{4})+$", trim($_POST['tele']))) {
// check telephone number format
//$error .= "Not a valid telephone number.";
}
// trim whitespace and validate the submitted data
$error = '';
if(trim($_POST['name']) == "" || !preg_match("/^[A-Za-z]+ [A-Za-z]/i", trim($_POST['name']))) {
// name is empty or has illegal charcters
$error .= "Name is missing or invalid. ";
}
if(trim($_POST['email']) == "" || !preg_match("/^[a-z0-9][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$/i", trim($_POST['email']))) {
// email is empty or has illegal charcters
$error .= "Invalid email address. ";
}
if(trim($_POST['email2']) == "" || !preg_match("/^[a-z0-9][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$/i", trim($_POST['email2']))) {
// confirm email is empty or has illegal charcters
$error .= "Invalid confirm email address. ";
}
if (trim($_POST['email2']) != trim($_POST['email'])) {
// confirm email and email do not match
$error .= "Email and confirm email do not match.";
}
if (trim($_POST['tele']) == "" || !preg_match("/^(([0-9]{1})*[- .(]*([0-9a-zA-Z]{3})*[- .)]*[0-9a-zA-Z]{3}[- .]*[0-9a-zA-Z]{4})+$/i", trim($_POST['tele']))) {
// check telephone number format
//$error .= "Not a valid telephone number.";
}Like Be the first to like this post.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »
