ok
Direktori : /proc/thread-self/root/home2/selectio/public_html/geniusgroove.in/new/ |
Current File : //proc/thread-self/root/home2/selectio/public_html/geniusgroove.in/new/enquiry.php |
<?php include 'header.php'?> <?php if(isset($_POST['add_news'])){ try{ $name=$_POST['name']; $phone=$_POST['phone_number']; $email=$_POST['email']; $message = $_POST['message']; $to = "info@geniusgroove.in"; $subject = " I am $name contact for Message details!"; /*$message = "<b>This is HTML message.</b>"; $message .= "<h1>This is headline.</h1>";*/ //$header = "$email\r\n"; $header =""; $header .= "Name : ".$name."\r\n"; $header .= "Email : ".$email."\r\n"; $header .= "Phone Number : ".$phone."\r\n"; $header .= "Message : ".$message."\r\n"; $retval = mail ($to,$subject,$header); if( $retval == true ) { echo '<script>alert("Message Sended Successfully")</script>'; }else{ echo '<script>alert("Message could not be sent...")</script>'; } }catch(Exception $e){ $error=$e; } } ?> <div class="col-md-12"> <div class="container"> <div class="row"> <div class="col-lg-6 order-1 order-lg-2"> <div class="contact__item"> <div class="section-header mb-40"> <h5 class="wow fadeInUp" data-wow-delay="00ms" data-wow-duration="1500ms">Enquiry </h5> <h2 class="wow fadeInUp" data-wow-delay="200ms" data-wow-duration="1500ms">Get In <span>Touch <img src="assets/images/shape/header-shape.png" alt="shape"></span> </h2> </div> <form method ="POST"> <div class="row g-4"> <div class="col-12"> <label for="name">Your Name*</label> <input id="name" type="text" name="name" placeholder="Your Name"> </div> <div class="col-12"> <label for="email">Your Email*</label> <input id="email" type="email" name="email" placeholder="Your Email"> </div> <div class="col-12"> <label for="phone number">Your Phone Number*</label> <input id="phone number" type="phone number" name="phone_number" placeholder="Your Phone Number"> </div> </div> <label for="message">Your Message*</label> <textarea name="message" name="message" id="message"></textarea> <!--<a href="#0" class="btn-one">Send Now<i class="fa-light fa-arrow-right-long"></i></a>--> <input type="submit" name="add_news" class="btn btn-red w-100" style="background-color: cadetblue;" value="Send Message" /> </form> </div> </div> </div> </div> </div> <?php include 'footer.php'?>