Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cekCaptcha(){
- $captcha = $this->input->post('captcha_code'); #mengambil value inputan pengguna
- $word = $this->session->userdata('mycaptcha'); #mengambil value captcha
- if (isset($captcha)) { #cek variabel $captcha kosong/tidak
- if (strtoupper($captcha)==strtoupper($word)) { #proses pencocokan captcha
- #terserah kalian mau diisi apa di sini
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment