Файловый менеджер - Редактировать - /home/d46091/udyogaadhaaronline.org/test-contact.php
Назад
<?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 = '".$applicant_name."',email_id ='".$email_id."'"; $to = "care@udyogaadhaaronline.org"; // this is your Email address $from = $email_id; // this is the sender's Email address $name = $applicant_name; $mobile_no = $mobile_number; $subject = "Form submission"; //$subject2 = "Copy of your form submission"; $message = " Applicant Name : " . $name ."<br> Mobile Name : ". $mobile_no ."<br> Email Id : ". $from ."<br> "; // $message2 = "Here is a copy of your message " . $first_name . "\n\n" . $_POST['message']; $headers = "From:" . $from; //$headers2 = "From:" . $to; $retval = mail($to,$subject,$message,$headers); //mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender if($retval == true){ echo '<script>alert("Mail Sent. Thank you , we will contact you shortly.")</script>'; }else { echo '<script>alert("Message could not be sent...")</script>'; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Contact us For Udyog Aadhaar/MSME/SSI Registration</title> <meta name="description" content="Conatct us for Udyog Aadhar/MSME/SSI Registration, Fill the easy online process get the certificate delivered to your email within 24 hours."> <link rel="icon" href="../assets/img/flag.png" type="image/gif" sizes="16x16"> <link rel="stylesheet" href="../fontawesome/css/all.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet"> <link rel="stylesheet" href="../assets/css/main.css"> <style> .container-fluid.fcs-padding-container { background: #ffffff !important; } span{ text-transform:none; } </style> </head> <body> <?php include './includes/header.php'; ?> <br> <div class="container "> <div class="row justify-content-center"> <div class="col-lg-4"> </div> </div> <!-- Tabbar --> <div class="container fcs-padding-container"> <h1 class="text-center">Contact Us</h1> <p class="card-text " style="margin-top: 30px; text-align: center;"> <div class="row"> <div class="col-lg-8 mx-auto"> <div class="col-lg-12"> <form action="test-contact.php" method="post"> <label>Name:</label> <input type="text" name="applicant_name"><br> <label>Mobile No:</label> <input type="tel" name="mobile_number"><br> <label>Email: </label><input type="text" name="email_id"><br> <!--<label>Message:</label><br><textarea rows="5" name="message" cols="30"></textarea><br>--> <input type="submit" name="submit" value="Submit"> </form> </div> </div> </div> <span style="font-size:15px"> Email Id: care@udyogaadhaaronline.org <br><br> Note : For quick resolution we advise our clients to click <a href="complaint-form.php">Here</a> and submit your grievance. </span> </p> </div> </div> </div> <?php include './includes/footer.php'; ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка