אני אשמח לקבל עזרה במציאת הבעיה עמוד ה- PHP של שליחת הטופס לאימייל שלי.
אני מקבל את הודעת השגיאה הבאה
Parse error: syntax error, unexpected T_VARIABLE in /home/anvlaser/domains/anv-laser.com/public_html/contact-form-handler.php on line 3
if( empty($errors))
{
$to = $myemail;
$email_subject = "Contact form submission: $name";
$email_body = "You have received a new message. ".
" Here are the details:\n Name: $name \n Email: $email_address \n phone \n $phone \n Message \n $message";
mail($to,$email_subject,$email_body,$headers);
//redirect to the 'thank you' page
header('Location: contact-form-thank-you.html');
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Contact form handler</title>
</head>
<body>
<!-- This page is displayed only if there is some error -->
<?php
echo nl2br($errors);
?>