dietician_reply.php

<html lang="en"><head><link rel="shortcut icon" href="assets/images/icons/paras.ico" /> <meta charset="utf-8" /><title>Paras Group ~ Consultation</title><meta content="width=device-width, initial-scale=1.0" name="viewport" /><meta content="yes" name="apple-mobile-web-app-capable" /><link href="" rel="stylesheet" type="text/css" data-mce-href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,300italic,400italic,600italic" /> <link rel="stylesheet" href="assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="assets/css/theme.min.css" /> <link rel="stylesheet" href="assets/css/color-defaults.min.css" media="screen" /> <link rel="stylesheet" href="assets/css/swatch-white.min.css" media="screen" /> <link rel="stylesheet" href="assets/css/swatch-blue.min.css" media="screen" /> <link rel="stylesheet" href="assets/css/swatch-gray.min.css" media="screen" /> <link rel="stylesheet" href="assets/css/swatch-black.min.css" media="screen" /> <link rel="stylesheet" href="assets/css/fonts.min.css" media="screen" /><style> body { background-color: #252B28; } </style></head><body class="normal-header"><!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-WJR869"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WJR869');</script><!-- End Google Tag Manager --> <div class="top-bar swatch-gray"> <div class="container"> <div class="top top-left"> <div class="sidebar-widget text-left small-screen-center widget_swatch_social"> <ul class="unstyled inline social-icons social-simple social-normal"> <li><a href="https://www.facebook.com/parasgoldrbo" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="https://twitter.com/parasgroupindia" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="https://www.pinterest.com/parasgroupindia/" target="_blank"><i class="fa fa-pinterest"></i></a></li> <li><a href="https://plus.google.com/+Parasgroupindia" target="_blank"><i class="fa fa-google-plus"></i></a></li> <li><a href="https://www.linkedin.com/company/2338369" target="_blank"><i class="fa fa-linkedin"></i></a></li> </ul> </div> </div> <div class="top top-right"> <div class="sidebar-widget text-right small-screen-center widget_text"> <div class="textwidget">Get in touch: &amp;nbsp(O) &amp;nbsp 0771-6538930 &amp;nbsp (F)&amp;nbsp 0771-6538934 &amp;nbsp</div> </div> </div> </div> </div> <div id="masthead" class="navbar navbar-static-top swatch-white navbar-sticky" role="banner"> <div class="container"> <div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".main-navbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a href="index.html" class="navbar-brand"> <img src="assets/images/parasgroupindia_logo.gif" /><img src="assets/images/parasgroup.png" /> </a></div> <nav class="collapse navbar-collapse main-navbar" role="navigation"> <ul class="nav navbar-nav navbar-right"> <li class="dropdown menu-item-object-oxy_mega_menu "><a href="index.html">Home</a></li> <li class="dropdown"><a href="products.html" class="dropdown menu-item-object-oxy_mega_menu">Products</a></li> <li class="dropdown"><a href="recipe.html" class="dropdown menu-item-object-oxy_mega_menu">Recipes</a></li> <li class="dropdown"><a href="contact.html" class="dropdown menu-item-object-oxy_mega_menu">Contact</a></li> <li class="dropdown"><a href="stores.html" class="dropdown menu-item-object-oxy_mega_menu">Store Locator</a></li> </ul> </nav> </div> </div> <div id="content"><?php if(isset($_POST['name'])){ $name=$_POST['name']; $email=$_POST['email']; $enquiry=$_POST['enquiry']; $age=$_POST['age']; $gender=$_POST['gender']; } /*Sending the enquiry mail to paras group email */ $to="dietician@parasgroupindia.com"; $headers="From: ".$name1." ".$email; $subject="IMP:Enquiry from ".$name; $message = 'Name: '.$name."\r\n"; $message .= 'Email: '.$email."\r\n"; $message .= 'Age: '.$age."\r\n"; $message .= 'Gender: '.$gender."\r\n"; $message .= 'Enquiry: '.$enquiry."\r\n"; mail($to,$subject,$message,$headers); //echo("MZIL SENT"); /* Sending feedback mail to the customer */ function spamcheck($field) { //filter_var() sanitizes the e-mail //address using FILTER_SANITIZE_EMAIL $field=filter_var($field, FILTER_SANITIZE_EMAIL); //filter_var() validates the e-mail //address using FILTER_VALIDATE_EMAIL if(filter_var($field, FILTER_VALIDATE_EMAIL)) { return TRUE; } else { return FALSE; } } if (isset($_REQUEST['email'])) {//if "email" is filled out, proceed //check if the email address is invalid $mailcheck = spamcheck($_REQUEST['email']); if ($mailcheck==FALSE) { echo "Invalid input"; } else {//send email $subject_feedback = "Greeting from Paras Group India!"; $message_feedback ="Dear Mr.".$name. ",\r\n\n" . "Thank you for submitting your query on our website.We will respond back to you in 2-3 working days.\r\n\n ". "Thanks and Regards, \r\nDr.Hina Bheda. \r\n For Paras Group India."; $from_feedback="dietician@parasgroupindia.com"; mail($email,$subject_feedback,$message_feedback,$from_feedback); //AUTO REPLY IN PLACE. //echo("FEEDBACK SENT"); } } ?> <section id="two" class="section swatch-white"> <article class=" post post-showinfo"> <div class="post-media"> <div class="figure element-no-top element-normal-bottom image-filter-none image-filter-onhover fade-in text-center figcaption-middle normalwidth" data-os-animation="none" data-os-animation-delay="0s"><br /> <br /> <br /> <br /> <br /> <img src="assets/images/parasgroupindia_logo.png" alt="Paras Group" style="width:100px;height;100px;" /> <br /> <br /> <br /> <header class="post-head"> <h1 class="post-title" style="align:center;float:center;" itemprop="name">      Thank you for your query. We will forward it to our dietician. You will recieve an email on your address soon.</h1> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></header> <p></p> </div> <!-- content--></div> </article> </section> <footer id="footer" role="contentinfo"> <section class="section swatch-black"> <div class="container"> <div class="row element-normal-top element-normal-bottom"> <p>© Paras Group. All Rights Reserved.</p> <!--<div class="col-md-3"> <div id="recent-posts-4" class="sidebar-widget widget_recent_entries"> <h3 class="sidebar-header">Recent Posts</h3> </div> </div> <div class="col-md-3"> <div id="categories-4" class="sidebar-widget widget_categories"> <h3 class="sidebar-header">Categories</h3> </div> </div> <div class="col-md-3"> <div id="archives-4" class="sidebar-widget widget_archive"> <h3 class="sidebar-header">Archives</h3> </div> </div> <div class="col-md-3"> <div id="tag_cloud-3" class="sidebar-widget widget_tag_cloud"> <h3 class="sidebar-header">Tags</h3> <div class="tagcloud"> </div> </div> </div>--></div> </div> </section> </footer> <script src="assets/js/packages.min.js"></script><script src="assets/js/theme.min.js"></script><script src="assets/js/switcher.min.js"></script></div> </body></html>