I am trying to set up an online registration page that will transmit the results to an email address. When I tried to do this, the email has come through without the php values and when I tried to echo some of the php to the screen, this also failed. Can anybody tell me what I am doing wrong? The code that I am using is as follows:
<?PHP
echo "<p>Thank you, <b>$POST[First]</b>, for your online registration. </p>";
echo "<p> $POST[message] </p>";
$Title = $POST[Title];
$Other = $POST[Other];
$Surname = $POST[Surname];
$submit = $POST[submit];
$qc = $_POST[qc];
$date = date("F j, Y, g:i a" );
$to = "me@mydomain.com";
$subject = "Completed Online Registration";
$message = "
The following details have been submitted:
Title: $Title\n
Other: $Other\n
First: $First\n
Surname: $Surname\n
Form submitted on: $date\n
\n";
$recipient="me@mydomain.com";
$subject="Online_Form_Submission";
$mailheaders="MIME-Version:1.0\r\n";
$mailheaders="Content-Type:text/plain ; charset=ISO-8859-1\r\n";
mail($recipient,$subject,$message,$mailheaders);
?>