verify($gelenCaptcha)) { $result = "CAPTCHA does not match!"; $enableCaptcha = "false"; } else { $enableCaptcha = "true"; } } else { $gelenCaptcha=""; $enableCaptcha = "false"; } if(isset($_GET["ok"]) && $_GET["ok"]=="ok"){ if($enableCaptcha =="true"){ if(isset($_POST["name"])) { $name=addslashes(mysqli_real_escape_string($mySqli, $_POST["name"])); } else { $name=""; } if(isset($_POST["email"])) { $email=addslashes(mysqli_real_escape_string($mySqli, $_POST["email"])); } else { $email=""; } if(isset($_POST["message"])) { $message=addslashes(mysqli_real_escape_string($mySqli, $_POST["message"])); } else { $message=""; } if(!empty($name) && !empty($email) && !empty($message)){ $ipadress=ipAdresi(); $insert_sql="INSERT INTO contacts (datetime, ady, email, message, ipadress) VALUES (now(), '$name', '$email','$message', '$ipadress') "; $insert_result = mysqli_query($mySqli,$insert_sql) or die (mysqli_error($mySqli)); if($insert_result){ echo '
'.$txt_message_ok.'.
'; }else { echo '
'.$txt_message_error.'.
'; } } else { // EGER HAYSYDYR BIRI BOSH BOLSA echo '
Ýalňyşlyk: Barlag haty nädogry ýa-da boşluklar doldurylmadyk..
'; } } else{ echo '
Ýalňyşlyk: Barlag haty nädogry ýa-da boşluklar doldurylmadyk..
'; } } else { } ?>
prime(); //if(extension_loaded('gd')){ ECHO "OK ->GD "; } else { echo "GDyok";} $PHPCAP->draw(); ?>