Banner
 
 
West USA Realty
$recaptcha = $_POST['g-recaptcha-response']; $res = reCaptcha($recaptcha); if(!$res['success']){ // Error } function reCaptcha($recaptcha){ $secret = "6LdMjgobAAAAAHtYcP8n1kJDDPhyCaIwFJbLSCNU"; $ip = $_SERVER['REMOTE_ADDR']; $postvars = array("secret"=>$secret, "response"=>$recaptcha, "remoteip"=>$ip); $url = "https://www.google.com/recaptcha/api/siteverify"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars); $data = curl_exec($ch); curl_close($ch); return json_decode($data, true); }

Reach Us

Phone: (602) 332-5507

Fax: (602) 702-5190

Email: Tom@MovingtoPhoenixAZ.com

 

Mail:

4505 E. Chandler Blvd. Suite 170
Phoenix, AZ 85048