Perhaps there’s a bug in the Contact Us page. Please change this part of the code:
Code:
if(trim($_POST[‘name’]) === ”) {
$nameError = ‘Please enter your name.’;
$hasError = true;
} else {
$name = trim($_POST[‘name’]);
}
to
Code:
if(trim($_POST[‘contact_name’]) === ”) {
$nameError = ‘Please enter your name.’;
$hasError = true;
} else {
$name = trim($_POST[‘contact_name’]);
}
and this part
to