File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/citiclub.co.in/career-mail.php
Back
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = $_POST["name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $position = $_POST["position"]; $message = $_POST["message"]; $captcha = $_POST['g-recaptcha-response']; $secretKey = "6LcQS4grAAAAAJIdsetIby_O5Fagfdj1A8Ld3mVv"; $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$captcha"); $responseData = json_decode($response); if ($responseData->success) { $EmailTo = "citi-club@live.com"; $Subject = "Enquiry From Citi Club - Career Application"; $Fields = "<table border='1' style='border-collapse:collapse; width:100%;'>"; $Fields .= "<tr><td style='padding:5px;'><strong>Name</strong></td><td style='padding:5px;'>$name</td></tr>"; $Fields .= "<tr><td style='padding:5px;'><strong>Email</strong></td><td style='padding:5px;'>$email</td></tr>"; $Fields .= "<tr><td style='padding:5px;'><strong>Phone</strong></td><td style='padding:5px;'>$phone</td></tr>"; $Fields .= "<tr><td style='padding:5px;'><strong>Position</strong></td><td style='padding:5px;'>$position</td></tr>"; $Fields .= "<tr><td style='padding:5px;'><strong>Message</strong></td><td style='padding:5px;'>$message</td></tr>"; $Fields .= "</table>"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n"; $headers .= "From: $email\r\n"; $success = mail($EmailTo, $Subject, $Fields, $headers); if ($success) { header("Location: thank-you.php"); exit; } else { echo "Something went wrong. Please try again later."; } } else { header("Location: " . $_SERVER['HTTP_REFERER'] . "?error=captcha"); exit; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings