Hello,
I am trying to get this form to email a customer if they choose to by checking a box. when they do check it and submit the form, they are sent to a confirmaion page that displays what they entererd. I also want it to automatically send them an email. I think i'm close, but it's not working yet.
Here is my code:
$mail_subject = "Profile Form";
$mailheaders .= "From: ".$f_name." ".$l_name." <".$email_id.">\n";
$mailheaders .= "MIME-Version: 1.0\n";
$mailheaders .= "Content-Type: text/html; charset=iso-8859-1";
$mailheaders .= "Return-Path: <".$email_id.">\n";
if (isset($_POST['email_copy'] > 0) ){
mail($email_id, $mail_subject, $msg, $mailheaders);
}
I am getting an parsing error on the 'if' line but i'm not sure what it is i've got wrong. I appreciate your help.
Jeff