D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
grandhou
/
www
/
Filename :
quote.php
back
Copy
<?php error_reporting(E_ERROR | E_PARSE); include('include/configpage.php'); include('include/config.php'); include('include/pdo.php'); if(isset($_POST['submit'])){ $to = "info@grandhouse.com.au"; // this is your Email address //$from = $_POST['email']; // this is the sender's Email address $first_name = $_POST['name']; $email = $_POST['email']; $mobile = $_POST['phone']; $originalDate = $_POST['dateofevent']; $dateofevent = date("d-m-Y", strtotime($originalDate)); $location = $_POST['location']; $look = $_POST['look']; $address = $_POST['address']; $message = $_POST['message']; $subject = "Response - Grand House"; // $subject2 = "Copy of your form submission"; $message = "Name: " . $first_name . "\nContact No: ". $mobile ." \nE-mail: ". $email ." \nDate of Event: ". $dateofevent ." \nLocation: ". $location ." \nLooking for: ". $look ." \nAddress: ". $address ." \nWrote the following:" . "\n\n" . $_POST['message']; // $message2 = "Here is a copy of your message " . $first_name . "\n\n" . $_POST['message']; // $headers2 = "From:" . $to; $mail=mail($to,$subject,$message); if($mail){ echo '<script type="text/javascript">alert("Thank you for contacting us. We will get back to you soon.");window.location=\'quote\';</script>'; } else { echo '<script type="text/javascript">alert("Failed.");window.location=\'contact\';</script>'; } } ?> <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>Get a Quote for Wedding Photoshoot in Sydney</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" > <meta name="google-site-verification" content="hoWy6_FOiwS5_mVRL32kxQAUuLIopJC_1jxgz_G9t4s" /> <!-- Google Tag Manager --> <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= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5Q7GCLP');</script> <!-- End Google Tag Manager --> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "LocalBusiness", "logo":{ "@type": "ImageObject", "url": "https://grandhouse.com.au/sydney-wedding-photography/grandhouse-wedding-photography-sydeny.png" }, "address":{ "@type": "PostalAddress", "streetAddress": "Suit 4 209 Macquarie Street", "addressLocality": "Liverpool", "addressRegion": "AU", "telephone": "0425 309 244", "email": " info@grandhouse.com.au" }, "name": "Grand House Wedding Photos & Cinema", "url": "https://grandhouse.com.au/", "image": "https://grandhouse.com.au/sydney-wedding-photography/grandhouse-wedding-photography-sydeny.png", "sameAs":[ "https://www.facebook.com/GrandhouseMedia","https://www.instagram.com/grandhousemedia/"] } </script> <link rel="shortcut icon" href="sydney-wedding-photography/favicon.ico"> <link href="css/grandhouse.css" rel="stylesheet" type="text/css"> <link href="css/navigation.css" rel="stylesheet" type="text/css"> <link rel="canonical" href="https://grandhouse.com.au/quote" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap" rel="stylesheet"> <!--fix nav --> <script type="text/javascript" src="grandhouse-wedding-photo-js/fix_nav.js"></script> <script type="text/javascript"> $(document).ready(function () { var sidebar = $('.home-top-menu-wrap'); var top = sidebar.offset().top - parseFloat(sidebar.css('marginTop')); $(window).scroll(function (event) { var ypos = $(this).scrollTop(); if (ypos >= top) { sidebar.addClass('fixed'); } else { sidebar.removeClass('fixed'); } }); }); </script> <!--fix nav end --> <script type="text/javascript" src="grandhouse-wedding-photo-js/jquery.min.js"></script> <script> $(document).ready(function(){ // hide #back-top first $("#back-top").hide(); // fade in #back-top $(function () { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#back-top').fadeIn(); } else { $('#back-top').fadeOut(); } }); // scroll body to 0px on click $('#back-top a').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); }); </script> <!--menu --> <script> $(function() { var html = $('html, body'), navContainer = $('.nav-container'), navToggle = $('.nav-toggle'), navDropdownToggle = $('.has-dropdown'); // Nav toggle navToggle.on('click', function(e) { var $this = $(this); e.preventDefault(); $this.toggleClass('is-active'); navContainer.toggleClass('is-visible'); html.toggleClass('nav-open'); }); // Nav dropdown toggle navDropdownToggle.on('click', function() { var $this = $(this); $this.toggleClass('is-active').children('ul').toggleClass('is-visible'); }); // Prevent click events from firing on children of navDropdownToggle navDropdownToggle.on('click', '*', function(e) { e.stopPropagation(); }); }); </script> <!--menu end --> </head> <body oncontextmenu="return false;"> <script> document.onkeydown = function(e) { if(event.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } } </script> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5Q7GCLP" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div id="innerbanner"> <div class="home-top-menu-wrap light"> <div class="left-address"><?php $STH85 = $DB_con->query("select * from home"); $STH85->setFetchMode(PDO::FETCH_OBJ); while($row85 = $STH85->fetch()) { echo $row85->headleft;?></div> <div class="grandhouse-logo"><a href="https://grandhouse.com.au/"><img src="sydney-wedding-photography/grandhouse-wedding-photography-sydeny.png" alt="Grandhouse Wedding Photography Sydney"></a></div> <div class="social-right"> <div class="mycases"><?php echo htmlspecialchars_decode($row85->contactdet, ENT_QUOTES); }?></div> </div> <?php include('include/menu-inner.php');?> </div> </div> <div class="wrap22"> <div class="gh-titlewrap inn"> <h2>GET A QUOTE<br><br><br> </h2></div> <div class="gh-common-wrap"> <div class="registration-wrap"> <form method="post" action=""> <table width="100%" border="0" cellpadding="0"> <tr> <td>Name</td> </tr> <tr> <td><input name="name" type="text" class="input22" required /></td> </tr> <tr> <td>Phone</td> </tr> <tr> <td><input name="phone" type="text" class="input22" required/></td> </tr> <tr> <td>Email</td> </tr> <tr> <td><input name="email" type="text" class="input22" /></td> </tr> <tr> <td>Date of the Event</td> </tr> <tr> <td><input name="dateofevent" type="date" class="input22" required/></td> </tr> <tr> <td>Event Location</td> </tr> <tr> <td><input name="location" type="text" class="input22" /></td> </tr> <tr> <td>Looking for Photo / Video</td> </tr> <tr> <td><label for="select"></label> <select name="look" class="input23" id="select"> <option selected>Select an Option</option> <option value="WEDDING PHOTOGRAPHY">Wedding Photography</option> <option value="WEDDING VIDEOGRAPHY">Wedding Videography</option> <option value="WEDDING PHOTO & VIDEO">Wedding Photo & Video</option> </select></td> </tr> <tr> <td>Your Address</td> </tr> <tr> <td><textarea name="address" rows="4" class="input22"></textarea></td> </tr> <tr> <td>Message</td> </tr> <tr> <td><textarea name="message" rows="4" class="input22"></textarea></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td align="center"><input name="submit" type="submit" class="gh-button" id="submit" value="Submit" /></td> </tr> <tr> <td> </td> </tr> </table> </form> </div> </div> </div> <?php include('include/footer.php');?> <script src="grandhouse-wedding-photo-js/jquery-1.12.4.min.js"></script> </body> </html>