Hi
I have an error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sites/trainingonsite.co.uk/public_html/sendmail.php on line 16 in the following PHP code:
<?php
foreach ($_POST as $key => $value)
{
if ($key == "submit") continue;
if ($value = "") {
echo "<script>alert('Please fill all form fields'); href.location = 'history.back()';</script>";
die();
}
$message = $key.":".$value."\r\n";
}
mail('example@example.com',*'Form filled at CTS: '.$_POST['course'],*$message);
?>
Please help me? Thanks in advance!