I am a newbie please help me I keep getting this error" Parse error: syntax error, unexpected T_STRING "
Also I need help with line breaks please.between these
. $name
. $telephone
. $email
. $message
Here is the script below.
<?php
session_start();
if( $_SESSION['6_letters_code'] == $_POST['6_letters_code'] && !empty($_SESSION['6_letters_code'] ) ) {
$to = " pinto56@optusnet.com.au";
$email_subject = "This is the email subject";
$name = $_POST['name'];
$telephone = $_POST['telephone'];
$email = $_POST['email'];
$message = $_POST['message'];
$email_body = "You have received a new message from "
. $name
. $telephone
. $email
. $message; ". Here is the message: "
mail($to, $email_subject, $email_body);
ob_start(); echo "Test"; header("Location: http://www.troyspaintingservices.com.au/thanks.html"); ob_flush();
} else {
ob_start(); echo "Test"; header("Location: http://www.troyspaintingservices.com.au/error.html"); ob_flush();
}
?>
|