Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
home
u820220146
domains
sanketstudycentre.com
public_html
File Content:
capcha_submit.php
<?php // Google reCAPTCHA API key configuration // at domain teamtos.in // $siteKey = '6LdWbLUpAAAAAPoLW1kGdJkRk6RgRtyUBxY19IuO'; // $secretKey = '6LdWbLUpAAAAAJxXsEtWEB9XOGwyIPuY4THiTjH7'; // at domain sanketstudycentre.com $siteKey = '6Ldb0bYpAAAAACDlP5Y-2U6QX8pMfEzrPSJObcjC'; $secretKey = '6Ldb0bYpAAAAAGODOq37OC4YvbdUF_I_fQWose9O'; // Email configuration $toEmail = 'info@sanketstudycentre.in'; $fromName = $_POST['name']; $formEmail = 'info@sanketstudycentre.in'; $postData = $statusMsg = $valErr = ''; $status = 'error'; // If the form is submitted if (isset($_POST['submit'])) { // Get the submitted form data $postData = $_POST; $name = trim($_POST['name']); $email = trim($_POST['email']); $contact_no = trim($_POST['contact_no']); $subject = trim($_POST['subject']); $message = trim($_POST['message']); // Validate form fields if (empty($name)) { $valErr .= 'Please enter your name.<br/>'; } if (empty($email) || filter_var($email, FILTER_VALIDATE_EMAIL) === false) { $valErr .= 'Please enter a valid email.<br/>'; } if (empty($contact_no)) { $valErr .= 'Please enter Contact No.<br/>'; } if (empty($subject)) { $valErr .= 'Please enter Subject.<br/>'; } if (empty($message)) { $valErr .= 'Please enter your message.<br/>'; } if (empty($valErr)) { date_default_timezone_set("Asia/Calcutta"); $datetime = new DateTime(); $applied_on = date('Y-m-d G:i:s'); include('db.php'); $sql = "INSERT into contact_inquiry VALUES ('','$name','$email','$contact_no', '$subject', '$message','$applied_on')"; // Validate reCAPTCHA box if (isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response']) && (mysqli_query($link, $sql))) { // Verify the reCAPTCHA response $verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . $secretKey . '&response=' . $_POST['g-recaptcha-response']); // Decode json data $responseData = json_decode($verifyResponse); // If reCAPTCHA response is valid if ($responseData->success) { // Send email notification to the site admin $subjects = 'New Enquiry On Website'; $htmlContent = " <p>Dear Team Tos,</p> <h4>Please find the details below:</h4> <p><b>Subject: </b>" . $subject . "</p> <p><b>Name: </b>" . $name . "</p> <p><b>Email: </b>" . $email . "</p> <p><b>Contact No: </b>" . $contact_no . "</p> <p><b>Message: </b>" . $message . "</p> "; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From:' . $fromName . ' <' . $formEmail . '>' . "\r\n"; // Send email @mail($toEmail, $subjects, $htmlContent, $headers); $status = 'success'; $statusMsg = 'Thank you! Your contact request has submitted successfully, we will get back to you soon.'; $postData = ''; } else { $statusMsg = '*Robot verification failed, please try again.'; } } else { $statusMsg = '*Please check the reCAPTCHA box.'; } } else { $statusMsg = '<p>*Please fill all the mandatory fields:</p>' . trim($valErr, '<br/>'); } } // Display status message
Edit
Download
Unzip
Chmod
Delete