-->

Easily Integrate Create Captcha in Codeigniter

Hello web developer, on this holiday we try to create captcha in Codeigniter. This method is the simplest because it is very simple but very useful. Most of the CodeIgniter captcha tutorials that I found on Google use complicated methods that are too complicated to use. Here we try the simplest method.
Easily Integrate Create Captcha in Codeigniter

Before you get to know Captcha.


The term "CAPTCHA" (derived from the English word "catch") was founded in 2000 by Luis Ahn, Manuel Blum, Nicholas J. Hopper (all from Carnegie Mellon University) and John Langford (IBM). This term is an abbreviation for "Fully Automated Public Turing Test to Distinguish Computers and People."

CAPTCHA or Captcha is a form of answer-response testing used on computers to ensure that responses are not generated by a computer.

The examples are as follows:


His enthusiasm is usually to prevent SPAM. So make sure that those who fill out the form are human, so they face challenges in the form of code (captcha) that must be entered by the user (not the machine).

Captcha in the Codeigniter

Okay, we'll just apply it in Codeigniter.
Please note that in this tutorial we always use pure CodeIgniter that has not yet been defined.

First, create the captcha folder. The location is parallel to the system folder and the application. Set CHMOD to 777 or 666.

lever
Then create a controller called registrasi.php and write the following script.

view
Then we create a view that is identical to registration_view.php. Write the following code to display the captcha.

Finally, create a new view called Sukses.php

The results can be seen on HTTP: //domain/index.php/registrasi

Well, so many tutorials this time, hopefully, you can help your job.

Do not forget to follow us on @bassnations

Thank you, Indonesia web developer.
LihatTutupKomentar
Cancel

Iklan Header