<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title>Taste Of Excellence</title>

    <!-- bootstrap -->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />

    <!-- animate -->
    <link rel="stylesheet" type="text/css" href="css/animate.css" />

    <!-- owl-carousel -->
    <link rel="stylesheet" type="text/css" href="css/owl.carousel.css">

    <!-- fontawesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
        integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />

    <!-- shortcodes -->
    <link rel="stylesheet" type="text/css" href="css/shortcodes.css" />

    <!-- main -->
    <link rel="stylesheet" type="text/css" href="css/main.css" />

    <!-- responsive -->
    <link rel="stylesheet" type="text/css" href="css/responsive.css" />

</head>

<body>
        <!--header start-->
        <header id="masthead" class="header ttm-header-style-01">
            <!-- ttm-header-wrap -->
            <div class="ttm-header-wrap">
                <!-- ttm-stickable-header-w -->
                <div id="ttm-stickable-header-w" class="ttm-stickable-header-w clearfix">
                    <div id="site-header-menu" class="site-header-menu">
                        <div class="site-header-menu-inner ttm-stickable-header">
                            <div class="container">
                                <div class="row">
                                    <div class="col-12">
                                        <!--site-navigation -->
                                        <div id="site-navigation" class="site-navigation">
                                            <div class="site-branding">
                                                <!-- site-branding -->
                                                <a class="home-link" href="index.php" title="Italian Food" rel="home">
                                                    <img id="logo-img" class="img-center lazyload"
                                                        src="images/main-logo.png" alt="logo">
                                                    <img class="logo-shape" src="images/logo-shape.png"
                                                        alt="logo-shape">
                                                </a>
                                                <!-- site-branding end -->
                                            </div>
                                            <div class="ttm-menu-toggle">
                                                <input type="checkbox" id="menu-toggle-form" />
                                                <label for="menu-toggle-form" class="ttm-menu-toggle-block">
                                                    <span class="toggle-block toggle-blocks-1"></span>
                                                    <span class="toggle-block toggle-blocks-2"></span>
                                                    <span class="toggle-block toggle-blocks-3"></span>
                                                </label>
                                            </div>
                                            <nav id="menu" class="menu">
                                                <ul class="dropdown" id="dropdown">
                                                    <li class="active"><a href="index.php">Home</a></li>
                                                    <li class=""><a href="index.php#about">About Us</a></li>
                                                    <li><a href="menu.html">Catering Menu</a></li>
                                                    <li><a href="gallery.html">Gallery</a></li>
                                                    <li><a href="index.php#contact">Contact</a></li>
                                                </ul>
                                            </nav>
                                        </div><!-- site-navigation end-->
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div><!-- ttm-stickable-header-w end-->
            </div><!--ttm-header-wrap end -->
        </header><!--header end-->

<?php
if(isset($_POST['submit'])) 
{
$name = $_POST['name']; // required
$email_address = $_POST['email'];
$telephone_number = $_POST['number']; // required
/*$subject= $_POST['subjectpalace'];*/
$comments = $_POST['message'];
$captcha = $_POST['captcha'];
$answer= $_POST['pass_math'];

if ($name !='' && $email_address !='' && $telephone_number !='' && $captcha == $answer)  { 
$email_to = "gm.jessegarg31@gmail.com";
$email_subject = "Contact Form Taste Of Excellence Website";
$email_message = "Form details below.<br><br>";

function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}

$email_message .= "Name: ".clean_string($name)."<br>";
$email_message .= "Email Address: ".clean_string($email_address)."<br>";
$email_message .= "Phone: ".clean_string($telephone_number)."<br>";
/*$email_message .= "Subject: ".clean_string($subject)."\n";*/
$email_message .= "Comments: ".clean_string($comments)."<br>";

// Create email headers
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "From: $email_address" . "\r\n";
$headers .= "Reply-To: $email_address" . "\r\n";
$headers .= "Bcc:restaurant.forms@imenu4u.com" . "\r\n";//contact@imenu4u.com
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

 $success = mail($email_to, $email_subject, $email_message, $headers);
      if ($success) {
          echo'<div  class="alert alert-success mt-5 py-5" role="alert" style="color:red" style="margin-top: 20px;"><strong>Success!</strong>Message Sent Successfully!</div>';
      }
      else { 

        echo  '<div class="alert alert-danger" role="alert" style="margin-top: 20px;"><strong>Error!</strong>There was a problem delivering the message.</div>'; 
      }
  } 
      else { 

        echo  '<div class="alert alert-danger" role="alert" style="margin-top: 20px;"><strong>Error!</strong>You Entered Wrong Values</div>'; 
      }
}
?>



<script src="js/jquery.min.js"></script>
    <script src="js/tether.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.easing.js"></script>
    <script src="js/jquery-waypoints.js"></script>
    <script src="js/jquery-validate.js"></script>
    <script src="js/owl.carousel.js"></script>
    <script src="js/jquery.prettyPhoto.js"></script>
    <script src="js/numinate.min6959.js?ver=4.9.3"></script>
    <script src="js/lazysizes.min.js"></script>
    <script src="js/main.js"></script>

</body>


