I'm new to php and have got a parse error in my code
Parse error: syntax error, unexpected T_STRING in /home/nonstopl/public_html/user19/send.php on line 41
Below is my code;
<?php
if(($_POST['email'] == '') || ($_POST['name'] == '') || (is_numeric($_POST['name'])) ||
($_POST['inquiryOptions'] == '') || (is_numeric($_POST['inquiryOptions'])) || ($_POST['thoughts'] == '') ||
($_POST['thoughts'] == '')){
echo 'Complete the forms correctly <br>
Click<a href="PHPcontact.php">here</a>to return to the main page,';
}else{
$to = '780778MSH00@tameside.ac.uk';// change email address
$send_date = date('d-m-Y H:i:s');
$subject = $_POST['inquiryOptions'];
$message = '
<html>
<head>
<title>Contact</title>
</head>
<body>
<p><tt>Date and Time: '.$send_date.' </tt></p>
<table>
<tr>
<td><tt>Full Name: '.$_POST['name'].' </tt></td>
</tr>
<tr>
<td><tt>Inquiry: '.$_POST['inquiryOptions'].'</tt></td>
</tr>
<tr>
<td><tt>Email:<a href="mailto:'.$_POST['email'].'">'.$_POST['email'].'</a></tt></td>
</tr>
<tr>
<td><tt>Whats on your mind?:<br><br>'.$_POST['thoughts'].'</tt></td>
</tr>
</table>
</body>
</html>
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "From:".$_POST['name']." ".$_POST['surname']."<".$_POST['email'].">\r\n";
mail($to, $thoughts, $message, $header);
echo 'The message was sent';
}
?>
I have managed to rectify other errors, but I cannot work this one out. HELP!😕
Thanks