Moze i troche smieszne a moze i żałosne nie dziala mi kod recaptcha ciagle pisze nieprawidlowy kod
<?php
include("subheader.php");
require_once('recaptchalib.php');
// Get a key from <a href="https://www.google.com/recaptcha/admin/create" target="_blank">https://www.google.com/recaptcha/admin/create</a>
$publickey = "6LenCt0SAAAAAEJHvzbIB6-a07TWz1cbEDE3A-lt";
$privatekey = "6LenCt0SAAAAAOmpaDqTbGRDnOPTaTg337ES8sGr";
# the response from reCAPTCHA
$resp = null;
if(isset($_POST["konto"])){ if ($_POST['konto'] !== "" && $_POST['password'] !== "" && $_POST['password2'] !== "" && $_POST['email'] !== ""&& $_POST["recaptcha_response_field"] !== ""){
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if($_SESSION['recaptcha_response_field'] == $_POST['recaptcha_response_field'] && $resp) {
if ($_POST['password']==$_POST['password2']){
$ile =mysql_query("SELECT * FROM ".$pre."user WHERE user_login = '$konto'"); if ($ile==0){
$zapytanie="INSERT INTO ".$pre."user (user_login,user_haslo,user_email,user_data_r) VALUES('$konto','$password','$email',NOW())";
$smarty->assign("regok","1");
}else{
$smarty->assign("login","1");
}
}
else
$smarty->assign("hasla","1");
}else{
$smarty->assign("token","1");
}
}else{
$smarty->assign("pola","1");
}
}else{
}
$smarty->assign("token_img",recaptcha_get_html($publickey));
$smarty->assign("idtoken",$idtoken);
$smarty->display($ust['templates'].'/register.tpl');
?>