hellope

Fungsi Cek Captcha

Jan 8th, 2017
2,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. function cekCaptcha(){
  2.  $captcha = $this->input->post('captcha_code'); #mengambil value inputan pengguna
  3. $word = $this->session->userdata('mycaptcha'); #mengambil value captcha
  4. if (isset($captcha)) { #cek variabel $captcha kosong/tidak
  5.    if (strtoupper($captcha)==strtoupper($word)) { #proses pencocokan captcha
  6.         #terserah kalian mau diisi apa di sini
  7.    }
  8.  }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment