0) { $input_name = $_POST["name"]; $input_phone = $_POST["phone"]; $input_test = $_POST["health-package"]; $emailList = "leads@clientsnow.co.in"; $headers .= "Bcc: " . $emailList . "\r\n"; $body = " Hi Imaging World, You have one enquiry from, Below are the details, Name = " . $input_name . " Phone = " . $input_phone . " Test = " . $input_test . " "; if (empty($input_name)) { header("Location: index.php"); } else if (empty($input_phone)) { header("Location: index.php"); }else if (strpos($input_name, "http") !== false) { header("Location: index.php"); }else if (mail("report@pathoworld.in", "Test Inquiry", $body, $headers)) { header("Location: https://wa.me/8160500718?text=Hey%20Patho%20World%2C%0AI%20went%20through%20your%20website.%20%0A%0APlease%20help%20me%20out%20for%20appointment%2Finquiry"); } else { header("Location: contact.php"); } } else header("Location: index.php");