Hi there,
I have just started working with PHP and am attempting to create an contacts page with an e-mailer. i am receiving the message
Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\e-mailer\contact.php on line 5
though i cannot see what the problem is here is the code: -
<?php
$to = "email@example.com";
$subject = $POST["title"];
$name = $POST["name"]
$message = $POST["message"];
$messagesent = "From: $name Message: $message";
$from = $POST["email"];
$headers = "From: $from";
mail($to,$subject,$messagesent,$headers);
echo "Your message has been sent, thank you.";
?>
if someone is able to help that would be great.
thank you
lukel1