So dreamweaver is telling me i have syntax errors at lines 5, 8, 10 and 12. But i can’t see why?
<?php
if(isset($_POST['submit'])) (
$msg = 'Name: ' .$_POST['FirstName'] .$_POST['LastName'] ."\n"
.'Email: ' .$_POST['Email'] ."\n"
.'Message: ' .$_POST['Message'];
mail('email@me.com', 'Message from website', $msg);
header('location: contact-thank-you.php');
)
else (
header('location: contact.php');
exit(0);
)
)
?>
Change the code to
You need to have
{and}instead of(&)