Contact King Leo Promotions & Productions Inc.
Your form has been submitted. We will reply as soon as possible. Thank you.";
echo "
"; $body.="Last Name: ".$_POST['last_name']."
"; $body.="Email: ".$_POST['email']."
"; $body.="Phone: ".$_POST['phone']."
"; $body.="Type of Inquiry: ".$_POST['type_of_inquiry']."
"; $body.="Comments: ".$_POST['comments']; $body=stripslashes($body); $to="info@kingleopromotions.com"; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: King Leo Promotions <'.$to.'>' . "\r\n"; $headers .= 'From: '.$_POST[first_name]." ".$_POST[last_name].'<'.$_POST[email].'>' . "\r\n"; // Mail it mail($to, $subject, $body, $headers); } $form_errors=0; if (($_POST['button']=='Submit') && ($_POST['first_name']=="")) { echo "You must submit your first name.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['last_name']=="")) { echo "You must submit your last name.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['email']=="")) { echo "You must submit your email address.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['type_of_inquiry']=="Please Select One")) { echo "Please choose your type of inquiry.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['comments']=="")) { echo "Please enter your comments.
"; $form_errors++; } if (($form_errors=='0') && ($_POST[button]!='Submit')) { displayform(); } if (($form_errors>='1') && ($_POST[button]=='Submit')) { displayform(); } function displayform() { ?>
"; $subject="KingLeoPromotions.com Email Inquiry"; $body="First Name: ".$_POST['first_name']."
"; $body.="Last Name: ".$_POST['last_name']."
"; $body.="Email: ".$_POST['email']."
"; $body.="Phone: ".$_POST['phone']."
"; $body.="Type of Inquiry: ".$_POST['type_of_inquiry']."
"; $body.="Comments: ".$_POST['comments']; $body=stripslashes($body); $to="info@kingleopromotions.com"; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: King Leo Promotions <'.$to.'>' . "\r\n"; $headers .= 'From: '.$_POST[first_name]." ".$_POST[last_name].'<'.$_POST[email].'>' . "\r\n"; // Mail it mail($to, $subject, $body, $headers); } $form_errors=0; if (($_POST['button']=='Submit') && ($_POST['first_name']=="")) { echo "You must submit your first name.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['last_name']=="")) { echo "You must submit your last name.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['email']=="")) { echo "You must submit your email address.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['type_of_inquiry']=="Please Select One")) { echo "Please choose your type of inquiry.
"; $form_errors++; } if (($_POST['button']=='Submit') && ($_POST['comments']=="")) { echo "Please enter your comments.
"; $form_errors++; } if (($form_errors=='0') && ($_POST[button]!='Submit')) { displayform(); } if (($form_errors>='1') && ($_POST[button]=='Submit')) { displayform(); } function displayform() { ?>