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
Post a Comment