HOME


Mini Shell 1.0
DIR:/home/rahuldwi/public_html/
Upload File :
Current File : /home/rahuldwi/public_html/contactdb.php
<?

include 'admin/connection.php';

if(empty($_POST['name'])){

	echo "Name Empty";

	exit();

}



$recaptcha = $_POST['g-recaptcha-response'];
$secret_key = '6LcwNQ4jAAAAAG75WQVMRHXx1oUf8AHy0mQz4OlE';
$url = 'https://www.google.com/recaptcha/api/siteverify?secret='
              . $secret_key . '&response=' . $recaptcha;
$response = file_get_contents($url);
$response = json_decode($response);


        if ($response->success == true) {

$sql = "insert into enq(name,email,mobile,message)value('".$_POST['name']."','".$_POST['email']."','".$_POST['phone']."','".$_POST['message']."')";

$exc = $mysqli->query($sql);

echo "Thank For Connect With Us.. We Will Contact You Soon";
}else{
			echo "Check Your recaptcha First";
		}
?>