Файловый менеджер - Редактировать - /home/d46091/gemregistrationonline.org/contact.php
Назад
<?php include("config.php"); if(isset($_POST['submit'])){ $applicant_name = $_POST['applicant_name']; $mobile_number = $_POST['mobile_number']; $email_id = $_POST['email_id']; $sql= "INSERT INTO contact_form SET applicant_name ='".$applicant_name."', mobile_number = '".$mobile_number."',email_id ='".$email_id."'"; if (!$result = $conn->query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } $to = "care@gemregistrar.org"; // this is your Email address $from = $email_id; // this is the sender's Email address $name = $applicant_name; $mobile_no = $mobile_number; $subject = "Contact Form submission"; //$subject2 = "Contact form submission"; $message = " Applicant Name : " . $name ."\n Mobile Name : ". $mobile_no ."\n Email Id : ". $from ."\n "; //$message2 = "Thank you " . $name . " we will contact you shortly."; $headers = "From:" . $from; // $headers2 = "From:" . $to; mail($to,$subject,$message,$headers); //mail($from,$subject2,$message2,$headers2); // sends the message to the sender echo '<script>alert("Thank you , we will contact you shortly.")</script>'; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Contact Us | GEM Registration Services</title> <meta name="description" content="Get in touch with GEM Registration for expert assistance. Contact us today for seamless GEM registration and support. Reach out now!"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="/assets/css/main.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> <?php include('header.php');?> </head> <body> <div class="container fcs-form-container"> <div class="container-fluid fcs-padding-container"> <h1 class="fcs-bold-text-white text-center mt-3">Contact Us</h1> <p class="card-text" style="margin-top: 30px; text-align: center;"> <div class="row"> <div class="col-lg-5 mx-auto"> <div class="col-lg-12"> <!--<h2 class="text-center">Fill Form to contact Us</h2>--> <form action="contact.php" method="post"> <div class="form-group"> <label>Name:</label> <input type="text" name="applicant_name" class="form-control" required> </div> <div class="form-group"> <label>Mobile No:</label> <input type="tel" name="mobile_number" class="form-control" required> </div> <div class="form-group"> <label>Email: </label> <input type="text" name="email_id" class="form-control" required> </div> <br> <!--<label>Message:</label><br><textarea rows="5" name="message" cols="30"></textarea><br>--> <input type="submit" class="btn btn-primary fcs-submit-button" name="submit" value="Submit"> </form> </div> </div> </div><br> <div style="font-size:15px; text-align:center"> Email id : care@myonlineregistration.com <br><br> <b>Note :</b> Please submit you details our representative will get back to you shortly.<br><br> Note : For quick resolution we advise our clients to <a href="/complaint.php">click Here</a> and submit your grievance. </div> </p> </div> </div> <?php include('footer.php');?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка