php - Recaptcha why doesn't this work? -


i'm trying use no captcha recaptcha have issue. use code :

if(isset($_post['g-recaptcha-response'])){   $captcha=$_post['g-recaptcha-response']; } if(!$captcha){         $json['error'] = $this->language->get('error_captcha'); }      if (!isset($json['error'])) {         $this->model_catalog_review->addreview($this->request->get['product_id'], $this->request->post);          $json['success'] = $this->language->get('text_success');     } } 

but error message if captcha filled out. how can fix this?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -