You've got an error at the $_POST[patientAge] variable. Try this:
$sql = "INSERT INTO main values('','$_POST[fName]','$_POST[sName]', '$_POST[patientAge]',
'$_POST[eMail]', '$_POST[cupSize]', '$_POST[chest]', '$_POST[hTel]', '$_POST[wTel]', '$_POST[cTel]',
'$_POST[financeReq]', $_POST[patientsubscribe]','$_POST[comments]')";
Try this:
<?php
$text = ("<p>
<font face='Verdana' size='2'><img src='http://www.mydomain.com/photos/$Hotel_Id/AAB$Hotel_Id.jpg' alt='$Establishment_Name' width='100' height='75'><br>
<a href='$Home_Hyperlink'>$Establishment_Name</a><br>
$Address1 $Address2 $Town $Post_Code<br>
$Description<br>
Click here to book the <a href='$Bookings_Hyperlink'>$Establishment_Name</a><br>");
if($AA_Rating == '0') {
$text .= "This hotel does not have a AA rating, ";
} else {
$text .= "This hotel has a $AA_Rating, ";
}
if)$RAC_Rating == '0') {
$text .= "and no RAC rating.";
} else {
$text .= "and a $RAC_Rating star RAC rating.";
}
$text .="</font></p><br>";
?>
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.