I have this form processor that I would like to send an email if FollowUpContact=1, Here is the processor. can anyone help me.
<?php
$RO = $_POST['RO'];
$FollowUpContact = $_POST['FollowUpContact'];
$CustomerNotReached = $_POST['CustomerNotReached'];
$Q1 = $_POST['Q1'];
$Q2 = $_POST['Q2'];
$Q3 = $_POST['Q3'];
$Q4 = $_POST['Q4'];
$Q5 = $_POST['Q5'];
$LaborCode = $_POST['LaborCode'];
$Comments = $_POST['Comments'];
$HAPPY = $_POST['HAPPY'];
mysql_connect("208.185.185.229","a0020386","brumbr50");
mysql_select_db("a0020386");
if($CustomerNotReached=='1'){
$query = "UPDATE KEYCAD SET Hold='N', FollowUpContact='$FollowUpContact', CustomerNotReached='$CustomerNotReached', Q1='$Q1', Q2='$Q2', Q3='$Q3', Q4='$Q4', Q5='$Q5', LaborCode='$LaborCode', Comments='$Comments', HAPPY='$HAPPY' WHERE RO=$RO";
}else{
$query = "UPDATE KEYCAD SET Hold='Y', FollowUpContact='$FollowUpContact', CustomerNotReached='$CustomerNotReached', Q1='$Q1', Q2='$Q2', Q3='$Q3', Q4='$Q4', Q5='$Q5', LaborCode='$LaborCode', Comments='$Comments', HAPPY='$HAPPY' WHERE RO=$RO";
}
print $query."<br />";
$result = mysql_query($query) or die(mysql_error());
echo"Thank You! Information Updated.\n";
?>
Thanks in advance.