my contact form not working …
0) {
$to = $_POST[‘to’][‘val’]; // “.
“Here are the details:
“;
foreach ($_POST as $key => $value) {
$email_body .= “” . $value[‘label’] . “: ” . $value[‘val’] . “
“;
}
$headers = “From:n”;
$headers.= “Content-Type:text/html; charset=UTF-8”;
if($email_address != “”) {
mail($to,$email_subject,$email_body,$headers);
return true;
}
}
?>