if (isset($_POST['Submit'])){ $name=$_POST['name']; $from=$_POST['email']; $comments=$_POST['comments']; $subject="Web Enquiry"; $to=" bandaschool@swiftkenya.com"; $message = "Hello, \r\n $name has made an equiry on your site \r\n\r\n\r\n Enquiry:\r\n $comments"; //$headers = "From: $from\r\n"; mail($to, $subject, $message, "From: $from","-f$from");//$headers); header("Location:thankyou.html"); } ?>