$result = mysqli_query($con, "SELECT * FROM contactus");
$row1=mysqli_fetch_array($result);
if(isset($_POST[Submit2]))
{
$sclml= str_replace('www.','', $Website);
$subject = "ONLINE APPLICATION CONFIRMATION FROM ".$SchoolName;
$mlto = $row1[HEMAIL];
$tdate = date("Y-m-d");
$subject = "Contact form submission from ".$sclml;
$des = "Name:" .$_POST["Name1"]." \n E-mail: ".$_POST["Name2"]." \n Fax: ".$_POST["Name3"]." \n Comment: ".$_POST["Comment"];
$des1 = " \n ".$Website." Date: ".$tdate;
$message = $des.$des1;
$prom = "$_POST[Name1]";
$sender_sender = "$_POST[Name2]";
$headers = 'From: ' . $prom . ' <' . $sender_sender . '>';
mail($mlto,$subject,$message,$headers);
//header("location:finalform.html");
?>
Your form submission was successful !!! We will get back to you soon, Thank You. } ?>
Contact Form Feel free to contact us through our contact details above or by feeling in information in the form below. $result = mysqli_query($con, "SELECT * FROM contactus"); $row1=mysqli_fetch_array($result); if(isset($_POST[Submit])) { $mlto = $row1[HEMAIL]; $tdate = date("Y-m-d"); $subject = "Contact/Enqiury form submission from www.powermuteltd.com"; $des = "Name:" .$_POST["Name1"]." \n E-mail: ".$_POST["Name2"]." \n Fax: ".$_POST["Name3"]." \n Comment: ".$_POST["Comment"]." \n How did you find us?: ".$_POST["Name4"]; $des1 = " \n www.powermuteltd.com. \n Dade: ".$tdate; $message = $des.$des1; $prom = "$_POST[Name1]"; $sender_sender = "$_POST[Name2]"; $headers = 'From: ' . $prom . ' <' . $sender_sender . '>'; mail($mlto,$subject,$message,$headers); //header("location:finalform.html"); ?>
Your form submission was successful !!! We will get back to you soon, Thank You. } ?>
Feel free to contact us by filing the form below. |