ok

Mini Shell

Direktori : /home/importfo/public_html/physiocarephysiotherapy.co.in/
Upload File :
Current File : /home/importfo/public_html/physiocarephysiotherapy.co.in/inquiry.php

 <?php
 include("admin/config.php");           
            if(isset($_POST['submit']))
            {
                error_reporting(0);
                $name=$_POST['name'];
                $email=$_POST['email'];
                $contact=$_POST['contact'];
                //$services=$_POST['sub'];
                $message=$_POST['message'];

                date_default_timezone_set('Asia/Kolkata');
                $currentTime = date( 'd-m-Y h:i:s A', time () );
                
                $sql="INSERT INTO `contact` (`name`, `email`, `contact`,`message`) VALUES ('$name','$email ','$contact','$message')";
                $result=mysqli_query($db,$sql);

                if($result==1)
                {
             
                    $to = "drpratik2989@gmail.com";
                    $subject = "Pooja Dental clinic Website Enquiry Detail";
             
                    $message .= "<h4>Name : $name</h4>";
                    $message .= "<h4>Email : $email </h4>";
                    $message .= "<h4>Contact : $contact </h4>";
                    //$message .= "<h4>Salon services : $services </h4>";
                    $message .= "<h4>MSG : $msg </h4>";

                    $header = "From:$email \r\n";
                    /*$header .= "Cc:inddigmedia@gmail.com\r\n";*/
                    $header .= "MIME-Version: 1.0\r\n";
                    $header .= "Content-type: text/html\r\n";
                 
                    $retval = mail ($to,$subject,$message,$header);
                    if( $retval == true )
                    { 
                      echo ("<script LANGUAGE='JavaScript'>window.location.href='thank-you-page.php';</script>");
                      /*echo "email send sucessfully";*/ 
                    }
                     }
                else
                {
                    echo "Email Could Not Send.!";
                }
            }
        ?>


   <!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />
    
    <title>Thank You For Contacting Physiocare Physiotherapy And Wellness Clinic. </title>
    
    <link href="csstwo/bootstrap.css" rel="stylesheet" />
    <link href="csstwo/coming-sssoon.css" rel="stylesheet" />    
    
    <!--     Fonts     -->
    <link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Grand+Hotel' rel='stylesheet' type='text/css'>
  
</head>

<body>
<nav class="navbar navbar-transparent navbar-fixed-top" role="navigation">  
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
       
      </ul>
      
      
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container -->
</nav>
<div class="main" style="background-image: url('imgtwo/bgmed.jpg')">

<!--    Change the image source '/images/default.jpg' with your favourite image.     -->
    
    <div class="cover black" data-color="black"></div>
     
<!--   You can change the black color for the filter with those colors: blue, green, red, orange       -->

    <div class="container">
        <h1 class="logo cursive">
                   <?php
// I'm India so my timezone is Asia/Calcutta
date_default_timezone_set('Asia/Calcutta');

// 24-hour format of an hour without leading zeros (0 through 23)
$Hour = date('G');

if ( $Hour >= 5 && $Hour <= 11 ) {
    echo "Good Morning";
} else if ( $Hour >= 12 && $Hour <= 16 ) {
    echo "Good Afternoon";
} else if ( $Hour >= 17 || $Hour <= 4 ) {
    echo "Good Evening";
}   
 ?>  Dear!
        </h1>
<!--  H1 can have 2 designs: "logo" and "logo cursive"           -->
        
        <div class="content">
            <h4 class="motto">Thank You For Contacting Physiocare Physiotherapy And Wellness Clinic</h4>
            <div class="subscribe">
                <h5 class="info-text">
                    We Will Contact You Soon As Possible. 
                </h5>
                <div class="row">
                    <div class="col-md-4 col-md-offset-4 col-sm6-6 col-sm-offset-3 ">
                        <form class="form-inline" role="form">
                          <!--<div class="form-group">
                            <label class="sr-only" for="exampleInputEmail2">Email address</label>
                            <input type="email" class="form-control transparent" placeholder="Your email here...">
                          </div>-->
                       <!-- <a href="http://divineclinic.co.in//about.php"><button type="submit" class="btn btn-danger btn-fill">Back To Home</button></a>  -->
                        <center><a href="index.php"><button type="button" class="btn btn-danger btn-fill">Back To Home</button></a></center>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
      <div class="container">
          <center>
             Made with <i class="fa fa-heart heart" title=""></i> by <a href="#"></a>. Inddig <a href="#" title="">Media.</a>
             </center>
      </div>
    </div>
 </div>
    <script src="jstwo/jquery-1.10.2.js" type="text/javascript"></script>
   <script src="jstwo/bootstrap.min.js" type="text/javascript"></script>

 </body>
</html>
      
   

Zerion Mini Shell 1.0