bactery' Alıntı:ozaman iletişim formu çalışmıyor ve hata veriyo
if (isset($this->error['captcha'])) {
$this->data['error_captcha'] = $this->error['captcha'];
} else {
$this->data['error_captcha'] = '';
}
if (isset($this->request->post['captcha'])) {
$this->data['captcha'] = $this->request->post['captcha'];
} else {
$this->data['captcha'] = '';
}
if (!isset($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
$this->error['captcha'] = $this->language->get('error_captcha');
}
<tr>
<td><?php echo $entry_captcha; ?><br />
<input type="text" name="captcha" value="<?php echo $captcha; ?>" />
<?php if ($error_captcha) { ?>
<span class="error"><?php echo $error_captcha; ?></span>
<?php } ?>
<br />
<img src="index.php?route=information/contact/captcha" /></td>
</tr>
public function captcha() {
$this->load->library('captcha');
$captcha = new Captcha();
$this->session->data['captcha'] = $captcha->getCode();
$captcha->showImage();
}
}
if ($this->session->data['captcha'] != $this->request->post['captcha']) {
$this->error['message'] = $this->language->get('error_captcha');
}
<br />
<b><?php echo $entry_captcha; ?></b><br />
<input type="text" name="captcha" value="" />
<br />
<img src="index.php?route=product/product/captcha" id="captcha" />