hello there i have this code and all the time i have this error, Parse error: parse error, unexpected T_BOOLEAN_OR in /home/content/b/g/r/bgrosu/html/sales/send.php on line 18
$to = "sales@nueva-design.com"; // change to your email address
$name = $POST['name'];
$email = $_POST['email'];
$url = $POST['url'];
$find = $_POST['find'];
$project = $_POST['`project'];
$d = date('l dS \of F Y h:i:s A');
$sub = "form to mail";
$headers = "From: $name <$email>\n";
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$mes .= "project: ".project."\n";
$mes .= "find: ".$find."\n";
$mes .= "url: ".$url."\n";
$mes .= "Name: ".$name."\n";
$mes .= 'Email: '.$email."\n";
$mes .= 'Date & Time: '.$d;
if (empty($name) || empty($email) || empty($url) || empty($find)) || empty($project)) ---here is the fault
{
echo " <h3>Sorry all fields are required.Please go back and fill up all the fields.<a href= index_quote.html></a></h3>";
}
elseif(!ereg("[a-z0-9-]+(.[a-z0-9-]+)@[a-z0-9-]+(.[a-z0-9-]+)(.[a-z]{2,3})$", $email)) {
print " <h3>Sorry the email address you entered looks like it's invalid.</h3>";
}
else
{
mail($to, $sub, $mes, $headers);
print " <h3><center>Thank you for your quote ".$name." we will contact you within 24 hours, until then stay back and relax and we will check your project. </center></h3>";
}
?>
can u pls tell me what i have to do, thank u for your time and i hope i will get some help.....