I have almost the same form as given the following URL:
URL: PHP form + Google reCAPTCHA
But after including the PHP code to my website-(www.obzservices.com) given in the answer, my website is just showing me the pre-loader icon i.e. my website is not loading up. I have edit my PHP Code previously by adding my Site Key, adding $name, $title, $location etc but it didn't help. Here is my PHP code:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$title = $_POST['title'];
$location = $_POST['location'];
$industry = $_POST['industry'];
$quantity = $_POST['quantity'];
$message = $_POST['message'];
$from = 'From: QuoteForm';
$to = 'obaid@obzservices.com';
$subject = 'Quote Request';
$body = "From: $name\n E-Mail: $email\n Title: $title\n Location: $location\n Industry: $industry\n Quantity: $quantity\n Message:\n $message";
if ($_POST['submit']) {
if ($email != '') {
if(mail ($to, $subject, $body, $from)) {
echo '<p>Your message has been sent!</p>';
} else {
echo '<p>Something went wrong, go back and try again!</p>';
}
}
}?>