Re: Contact Form

#1038
milos
Moderator

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

Code:

to

Code: